diff --git a/.github/workflows/create_draft_release.yml b/.github/workflows/create_draft_release.yml new file mode 100644 index 00000000..38732c1f --- /dev/null +++ b/.github/workflows/create_draft_release.yml @@ -0,0 +1,93 @@ +# /******************************************************************************** +# * Copyright (c) 2024 Contributors to the Eclipse Foundation +# * +# * See the NOTICE file(s) distributed with this work for additional +# * information regarding copyright ownership. +# * +# * This program and the accompanying materials are made available under the +# * terms of the Apache License 2.0 which is available at +# * http://www.apache.org/licenses/LICENSE-2.0 +# * +# * SPDX-License-Identifier: Apache-2.0 +# ********************************************************************************/ + +name: Create Draft Release + +on: + workflow_dispatch: # input version manually. Overrides push tag + inputs: + tag: + description: "Release version, eg:latest, 0.2.1" + required: true + default: "0.0.0" + + # As of today trigger only manually + #push: + # tags: + # - "*.*.*" + +# Needed if GITHUB_TOKEN by default do not have right to create release +permissions: + contents: write + packages: write + +jobs: + get_version: + runs-on: ubuntu-latest + # Map a step output to a job output + outputs: + version: ${{ steps.eval_version.outputs.version }} + steps: + - name: Get tag or user release version + id: eval_version + run: | + GIT_VER="${GITHUB_REF/refs\/tags\//}" + echo "### Detected tag: $GIT_VER" + if [ -n "${{ github.event.inputs.tag }}" ]; then + GIT_VER="${{ github.event.inputs.tag }}" + echo "Forced release version: $GIT_VER" + echo "version=${GIT_VER}" >> $GITHUB_OUTPUT + else + echo "version=${GIT_VER}" >> $GITHUB_OUTPUT + fi + + call_kuksa_databroker_build: + uses: ./.github/workflows/kuksa_databroker_build.yml + call_kuksa_databroker-cli_build: + uses: ./.github/workflows/kuksa_databroker-cli_build.yml + + create_release: + runs-on: ubuntu-latest + needs: + [ + get_version, + call_kuksa_databroker_build, + call_kuksa_databroker-cli_build, + ] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Download all artifacts + uses: actions/download-artifact@v4 + with: + path: build-artifacts + # Only packed binaries shall start with "databroker" + # As of now do not upload separate dash and third party reports + pattern: databroker* + merge-multiple: true + - name: Display structure of downloaded files + run: ls -R build-artifacts + + - name: Create release + id: create_release + uses: softprops/action-gh-release@v2 + # if: startsWith(github.ref, 'refs/tags/' + with: + draft: true + tag_name: ${{ needs.get_version.outputs.version }} + fail_on_unmatched_files: true + files: | + build-artifacts/* + LICENSE + NOTICE.md diff --git a/.github/workflows/kuksa_databroker-cli_build.yml b/.github/workflows/kuksa_databroker-cli_build.yml index 76531199..67aac170 100644 --- a/.github/workflows/kuksa_databroker-cli_build.yml +++ b/.github/workflows/kuksa_databroker-cli_build.yml @@ -26,8 +26,9 @@ on: workflow_call: workflow_dispatch: +# suffix to avoid cancellation when running from release workflow concurrency: - group: ${{ github.ref }}-${{ github.workflow }} + group: ${{ github.ref }}-${{ github.workflow }}-databroker-cli cancel-in-progress: true # Needed as default_workflow_permissions is "read" @@ -160,24 +161,36 @@ jobs: uses: eclipse-kuksa/kuksa-actions/post-container-location@2 with: image: ttl.sh/eclipse-kuksa/kuksa-databroker-cli-${{github.sha}} + - name: Pack binaries with thirdparty + env: + AMD64_DIR: ${{ github.workspace }}/dist/amd64 + ARM64_DIR: ${{ github.workspace }}/dist/arm64 + RISCV64_DIR: ${{ github.workspace }}/dist/riscv64 + run: | + cd "$AMD64_DIR" + tar czf databroker-cli-amd64.tar.gz * + cd "$ARM64_DIR" + tar czf databroker-cli-arm64.tar.gz * + cd "$RISCV64_DIR" + tar czf databroker-cli-riscv64.tar.gz * - name: "Archiving AMD64 artifacts" uses: actions/upload-artifact@v4 with: - name: databroker-cli-amd64 - path: ${{github.workspace}}/dist/amd64 + name: databroker-cli-amd64.tar.gz + path: ${{github.workspace}}/dist/amd64/databroker-cli-amd64.tar.gz - name: "Archiving ARM64 artifacts" uses: actions/upload-artifact@v4 with: - name: databroker-cli-arm64 - path: ${{github.workspace}}/dist/arm64 + name: databroker-cli-arm64.tar.gz + path: ${{github.workspace}}/dist/arm64/databroker-cli-arm64.tar.gz - name: "Archiving RISCV64 artifacts" uses: actions/upload-artifact@v4 with: - name: databroker-cli-riscv64 - path: ${{github.workspace}}/dist/riscv64 + name: databroker-cli-riscv64.tar.gz + path: ${{github.workspace}}/dist/riscv64/databroker-cli-riscv64.tar.gz bom: @@ -200,9 +213,9 @@ jobs: working-directory: ${{github.workspace}}/createbom run: | which cargo-license || cargo install cargo-license - python3 createbom.py --dash ${{github.workspace}}/dash-databroker-deps ../databroker + python3 createbom.py --dash ${{github.workspace}}/dash-databroker-cli ../databroker - name: Dash license check - uses: eclipse-kuksa/kuksa-actions/check-dash@2 + uses: eclipse-kuksa/kuksa-actions/check-dash@3 with: - dashinput: ${{github.workspace}}/dash-databroker-deps + dashinput: ${{github.workspace}}/dash-databroker-cli diff --git a/.github/workflows/kuksa_databroker_build.yml b/.github/workflows/kuksa_databroker_build.yml index 7eca6b5f..cdb9bddb 100644 --- a/.github/workflows/kuksa_databroker_build.yml +++ b/.github/workflows/kuksa_databroker_build.yml @@ -20,8 +20,9 @@ on: workflow_call: workflow_dispatch: +# suffix to avoid cancellation when running from release workflow concurrency: - group: ${{ github.ref }}-${{ github.workflow }} + group: ${{ github.ref }}-${{ github.workflow }}-databroker cancel-in-progress: true # Needed as default_workflow_permissions is "read" @@ -90,6 +91,7 @@ jobs: build: name: Build runs-on: ubuntu-latest + needs: [bom] env: CARGO_TERM_COLOR: always strategy: @@ -103,6 +105,14 @@ jobs: target: riscv64gc-unknown-linux-gnu steps: - uses: actions/checkout@v4 + - name: Retrieve artifacts + uses: actions/download-artifact@v4 + with: + path: artifacts + pattern: Third* + merge-multiple: true + - name: Display structure of downloaded files + run: ls -R - uses: actions/cache@v4 with: path: | @@ -120,19 +130,21 @@ jobs: working-directory: ${{github.workspace}}/ run: | cross build --target ${{ matrix.platform.target }} --bin databroker --release - mkdir -p "dist/${{ matrix.platform.name }}" - cp "target/${{ matrix.platform.target }}/release/databroker" "dist/${{ matrix.platform.name }}" + mkdir -p "dist" + cp "target/${{ matrix.platform.target }}/release/databroker" "dist" - name: Package dist files shell: bash working-directory: ${{github.workspace}} run: | - tar -cf databroker-${{ matrix.platform.name }}.tar.gz dist + cd dist + tar xf ../artifacts/thirdparty.tar.gz + tar -czf databroker-${{ matrix.platform.name }}.tar.gz * - name: Upload artifacts uses: actions/upload-artifact@v4 with: name: databroker-${{ matrix.platform.name }}.tar.gz - path: databroker-${{ matrix.platform.name }}.tar.gz + path: dist/databroker-${{ matrix.platform.name }}.tar.gz if-no-files-found: error check_ghcr_push: @@ -160,16 +172,18 @@ jobs: ARM64_DIR: ${{ github.workspace }}/target/aarch64-unknown-linux-musl/release RISCV64_DIR: ${{ github.workspace }}/target/riscv64gc-unknown-linux-gnu/release run: | - tar xf artifacts/databroker-amd64.tar.gz + cd artifacts + tar xf databroker-amd64.tar.gz mkdir -p "$AMD64_DIR" - mv dist/amd64/databroker "$AMD64_DIR" - tar xf artifacts/databroker-arm64.tar.gz + mv databroker "$AMD64_DIR" + tar xf databroker-arm64.tar.gz mkdir -p "$ARM64_DIR" - mv dist/arm64/databroker "$ARM64_DIR" - tar xf artifacts/databroker-riscv64.tar.gz + mv databroker "$ARM64_DIR" + tar xf databroker-riscv64.tar.gz mkdir -p "$RISCV64_DIR" - mv dist/riscv64/databroker "$RISCV64_DIR" - tar xf artifacts/thirdparty.tar.gz + mv databroker "$RISCV64_DIR" + tar xf thirdparty.tar.gz + mv thirdparty ../databroker/ - name: Set container metadata id: meta uses: docker/metadata-action@v5 @@ -294,21 +308,21 @@ jobs: - name: License check and Dash output generation working-directory: ${{github.workspace}}/createbom run: | - python3 createbom.py --dash ${{github.workspace}}/dash-databroker-deps ../databroker + python3 createbom.py --dash ${{github.workspace}}/dash-databroker ../databroker - name: Dash license check - uses: eclipse-kuksa/kuksa-actions/check-dash@2 + uses: eclipse-kuksa/kuksa-actions/check-dash@3 with: - dashinput: ${{github.workspace}}/dash-databroker-deps + dashinput: ${{github.workspace}}/dash-databroker - name: Generate Bill of Materials working-directory: ${{github.workspace}}/createbom run: | rm -r ../databroker/thirdparty python3 createbom.py ../databroker - cd .. - tar cf thirdparty.tar.gz databroker/thirdparty + cd ../databroker + tar czf thirdparty.tar.gz thirdparty - name: Upload Bill of Materials uses: actions/upload-artifact@v4 with: name: Third party licenses - path: thirdparty.tar.gz + path: databroker/thirdparty.tar.gz if-no-files-found: error diff --git a/Cargo.lock b/Cargo.lock index d46e89e4..879e4a78 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -100,9 +100,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.81" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247" +checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519" [[package]] name = "arc-swap" @@ -141,7 +141,7 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -152,7 +152,7 @@ checksum = "a507401cad91ec6a857ed5513a2073c82a9b9048762b885bb98655b306964681" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -163,9 +163,9 @@ checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80" [[package]] name = "autotools" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aef8da1805e028a172334c3b680f93e71126f2327622faef2ec3d893c0a4ad77" +checksum = "ef941527c41b0fc0dd48511a8154cd5fc7e29200a0ff8b7203c5d777dbc795cf" dependencies = [ "cc", ] @@ -249,6 +249,12 @@ version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" +[[package]] +name = "base64" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9475866fec1451be56a3c2400fd081ff546538961565ccb5b7142cbd22bc7a51" + [[package]] name = "bitflags" version = "1.3.2" @@ -303,9 +309,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.15.4" +version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ff69b9dd49fd426c69a0db9fc04dd934cdb6645ff000864d98f7e2af8830eaa" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "bytecount" @@ -359,9 +365,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.90" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cd6604a82acf3039f1144f54b8eb34e91ffba622051189e71b781822d5ee1f5" +checksum = "2678b2e3449475e95b0aa6f9b506a28e61b3dc8996592b983695e8ebb58a8b41" [[package]] name = "cfg-if" @@ -415,7 +421,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -558,7 +564,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.57", + "syn 2.0.58", "synthez", ] @@ -858,7 +864,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -914,9 +920,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.12" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" +checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" dependencies = [ "cfg-if", "js-sys", @@ -936,7 +942,7 @@ dependencies = [ "quote", "serde", "serde_json", - "syn 2.0.57", + "syn 2.0.58", "textwrap", "thiserror", "typed-builder", @@ -1214,7 +1220,7 @@ checksum = "1dff438f14e67e7713ab9332f5fd18c8f20eb7eb249494f6c2bf170522224032" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -1810,7 +1816,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -2127,11 +2133,11 @@ checksum = "9555b1514d2d99d78150d3c799d4c357a3e2c2a8062cd108e93a06d9057629c5" [[package]] name = "pem" -version = "3.0.3" +version = "3.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b8fcc794035347fb64beda2d3b462595dd2753e3f268d89c5aae77e8cf2c310" +checksum = "8e459365e590736a54c3fa561947c84837534b8e9af6fc5bf781307e82658fae" dependencies = [ - "base64 0.21.7", + "base64 0.22.0", "serde", ] @@ -2206,7 +2212,7 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -2323,9 +2329,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.35" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] @@ -2357,7 +2363,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.12", + "getrandom 0.2.14", ] [[package]] @@ -2392,7 +2398,7 @@ version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891" dependencies = [ - "getrandom 0.2.12", + "getrandom 0.2.14", "libredox", "thiserror", ] @@ -2455,7 +2461,7 @@ checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", "cfg-if", - "getrandom 0.2.12", + "getrandom 0.2.14", "libc", "spin", "untrusted", @@ -2526,9 +2532,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.14" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" +checksum = "80af6f9131f277a45a3fba6ce8e2258037bb0477a67e610d3c1fe046ab31de47" [[package]] name = "ryu" @@ -2576,7 +2582,7 @@ dependencies = [ "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -2605,7 +2611,7 @@ checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -2736,7 +2742,7 @@ checksum = "0eb01866308440fc64d6c44d9e86c5cc17adfe33c4d6eed55da9145044d0ffc1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -2772,9 +2778,9 @@ dependencies = [ [[package]] name = "strsim" -version = "0.11.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ee073c9e4cd00e28217186dbe12796d692868f432bf2e97ee73bed0c56dfa01" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "syn" @@ -2789,9 +2795,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.57" +version = "2.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11a6ae1e52eb25aab8f3fb9fca13be982a373b8f1157ca14b897a825ba4a2d35" +checksum = "44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687" dependencies = [ "proc-macro2", "quote", @@ -2810,7 +2816,7 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3d2c2202510a1e186e63e596d9318c91a8cbe85cd1a56a7be0c333e5f59ec8d" dependencies = [ - "syn 2.0.57", + "syn 2.0.58", "synthez-codegen", "synthez-core", ] @@ -2821,7 +2827,7 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f724aa6d44b7162f3158a57bccd871a77b39a4aef737e01bcdff41f4772c7746" dependencies = [ - "syn 2.0.57", + "syn 2.0.58", "synthez-core", ] @@ -2834,7 +2840,7 @@ dependencies = [ "proc-macro2", "quote", "sealed", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -2900,7 +2906,7 @@ checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -2915,9 +2921,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.34" +version = "0.3.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8248b6521bb14bc45b4067159b9b6ad792e2d6d754d6c41fb50e29fefe38749" +checksum = "ef89ece63debf11bc32d1ed8d078ac870cbeb44da02afb02a9ff135ae7ca0582" dependencies = [ "deranged", "itoa", @@ -2938,9 +2944,9 @@ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] name = "time-macros" -version = "0.2.17" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ba3a3ef41e6672a2f0f001392bb5dcd3ff0a9992d618ca761a11c3121547774" +checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" dependencies = [ "num-conv", "time-core", @@ -2997,7 +3003,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -3144,7 +3150,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -3214,7 +3220,7 @@ checksum = "29a3151c41d0b13e3d011f98adc24434560ef06673a155a6c7f66b9879eecce2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", ] [[package]] @@ -3297,7 +3303,7 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0" dependencies = [ - "getrandom 0.2.12", + "getrandom 0.2.14", ] [[package]] @@ -3373,7 +3379,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", "wasm-bindgen-shared", ] @@ -3395,7 +3401,7 @@ checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn 2.0.58", "wasm-bindgen-backend", "wasm-bindgen-shared", ] diff --git a/Dockerfile b/Dockerfile index 679ab113..bc405613 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,6 +44,9 @@ COPY ./target/riscv64gc-unknown-linux-gnu/release/databroker /app/databroker FROM target-$TARGETARCH as target ARG TARGETARCH + +# Before running this file thirdparty files must have been created +# by build-all-targets.sh or corresponding command in buildaction COPY ./databroker/thirdparty/ /app/thirdparty COPY ./data/vss-core/vss_release_3.1.1.json vss_release_3.1.1.json diff --git a/lib/Cargo.lock b/lib/Cargo.lock index f30a67ea..c5345e9b 100644 --- a/lib/Cargo.lock +++ b/lib/Cargo.lock @@ -19,18 +19,18 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "aho-corasick" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" dependencies = [ "memchr", ] [[package]] name = "anyhow" -version = "1.0.80" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ad32ce52e4161730f7098c077cd2ed6229b5804ccf99e5366be1ab72a98b4e1" +checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519" [[package]] name = "async-stream" @@ -51,31 +51,31 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.52", + "syn 2.0.58", ] [[package]] name = "async-trait" -version = "0.1.77" +version = "0.1.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c980ee35e870bd1a4d2c8294d4c04d0499e67bca1e4b5cefcc693c2fa00caea9" +checksum = "a507401cad91ec6a857ed5513a2073c82a9b9048762b885bb98655b306964681" dependencies = [ "proc-macro2", "quote", - "syn 2.0.52", + "syn 2.0.58", ] [[package]] name = "autocfg" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80" [[package]] name = "autotools" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aef8da1805e028a172334c3b680f93e71126f2327622faef2ec3d893c0a4ad77" +checksum = "ef941527c41b0fc0dd48511a8154cd5fc7e29200a0ff8b7203c5d777dbc795cf" dependencies = [ "cc", ] @@ -127,9 +127,9 @@ dependencies = [ [[package]] name = "backtrace" -version = "0.3.69" +version = "0.3.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" +checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d" dependencies = [ "addr2line", "cc", @@ -154,21 +154,21 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.4.2" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" +checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" [[package]] name = "bytes" -version = "1.5.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" +checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" [[package]] name = "cc" -version = "1.0.89" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0ba8f7aaa012f30d5b2861462f6708eccd49c3c39863fe083a308035f63d723" +checksum = "2678b2e3449475e95b0aa6f9b506a28e61b3dc8996592b983695e8ebb58a8b41" [[package]] name = "cfg-if" @@ -178,7 +178,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "databroker-proto" -version = "0.4.1" +version = "0.4.4" dependencies = [ "prost", "prost-types", @@ -211,9 +211,9 @@ dependencies = [ [[package]] name = "fastrand" -version = "2.0.1" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" +checksum = "658bd65b1cf4c852a3cc96f18a8ce7b5640f6b703f905c7d74532294c2a63984" [[package]] name = "fixedbitset" @@ -268,9 +268,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.12" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" +checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" dependencies = [ "cfg-if", "libc", @@ -285,9 +285,9 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "h2" -version = "0.3.24" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb2c4422095b67ee78da96fbb51a4cc413b3b25883c7717ff7ca1ab31022c9c9" +checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" dependencies = [ "bytes", "fnv", @@ -295,7 +295,7 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap 2.2.5", + "indexmap 2.2.6", "slab", "tokio", "tokio-util", @@ -411,9 +411,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.2.5" +version = "2.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b0b929d511467233429c45a44ac1dcaa21ba0f5ba11e4879e6ed28ddb4f9df4" +checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ "equivalent", "hashbrown 0.14.3", @@ -430,13 +430,13 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" +checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "kuksa" -version = "0.1.0" +version = "0.4.4" dependencies = [ "databroker-proto", "http", @@ -448,7 +448,7 @@ dependencies = [ [[package]] name = "kuksa-common" -version = "0.1.0" +version = "0.4.4" dependencies = [ "databroker-proto", "http", @@ -459,7 +459,7 @@ dependencies = [ [[package]] name = "kuksa-sdv" -version = "0.1.0" +version = "0.4.4" dependencies = [ "databroker-proto", "http", @@ -501,9 +501,9 @@ checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" [[package]] name = "memchr" -version = "2.7.1" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" +checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" [[package]] name = "mime" @@ -565,7 +565,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset", - "indexmap 2.2.5", + "indexmap 2.2.6", ] [[package]] @@ -585,14 +585,14 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.52", + "syn 2.0.58", ] [[package]] name = "pin-project-lite" -version = "0.2.13" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" +checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" [[package]] name = "pin-utils" @@ -618,9 +618,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.78" +version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" +checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e" dependencies = [ "unicode-ident", ] @@ -690,9 +690,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.35" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] @@ -729,9 +729,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.3" +version = "1.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" +checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" dependencies = [ "aho-corasick", "memchr", @@ -752,9 +752,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" +checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" [[package]] name = "ring" @@ -779,11 +779,11 @@ checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" [[package]] name = "rustix" -version = "0.38.31" +version = "0.38.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949" +checksum = "65e04861e65f21776e67888bfbea442b3642beaa0138fdb1dd7a84a52dffdb89" dependencies = [ - "bitflags 2.4.2", + "bitflags 2.5.0", "errno", "libc", "linux-raw-sys", @@ -823,9 +823,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.14" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" +checksum = "80af6f9131f277a45a3fba6ce8e2258037bb0477a67e610d3c1fe046ab31de47" [[package]] name = "sct" @@ -854,7 +854,7 @@ checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.52", + "syn 2.0.58", ] [[package]] @@ -895,9 +895,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.52" +version = "2.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b699d15b36d1f02c3e7c69f8ffef53de37aefae075d8488d4ba1a7788d574a07" +checksum = "44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687" dependencies = [ "proc-macro2", "quote", @@ -924,9 +924,9 @@ dependencies = [ [[package]] name = "tokio" -version = "1.36.0" +version = "1.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61285f6515fa018fb2d1e46eb21223fff441ee8db5d0f1435e8ab4f5cdb80931" +checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787" dependencies = [ "backtrace", "bytes", @@ -956,7 +956,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.52", + "syn 2.0.58", ] [[package]] @@ -971,9 +971,9 @@ dependencies = [ [[package]] name = "tokio-stream" -version = "0.1.14" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" +checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af" dependencies = [ "futures-core", "pin-project-lite", @@ -1090,7 +1090,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.52", + "syn 2.0.58", ] [[package]] diff --git a/prepare_release.sh b/prepare_release.sh index 3615edb6..d7b422a7 100755 --- a/prepare_release.sh +++ b/prepare_release.sh @@ -32,9 +32,16 @@ DATA_BROKER_ROOT="$SCRIPT_DIR" # Update Cargo.toml versions. sed -i -E "s/^version = \"${VERSION_REGEX}\"$/version = \"${VERSION}\"/" \ "$DATA_BROKER_ROOT/databroker/Cargo.toml" \ - "$DATA_BROKER_ROOT/databroker-api/Cargo.toml" \ "$DATA_BROKER_ROOT/databroker-cli/Cargo.toml" \ - "$DATA_BROKER_ROOT/databroker-examples/Cargo.toml" + "$DATA_BROKER_ROOT/databroker-proto/Cargo.toml" \ + "$DATA_BROKER_ROOT/lib/sdv/Cargo.toml" \ + "$DATA_BROKER_ROOT/lib/kuksa/Cargo.toml" \ + "$DATA_BROKER_ROOT/lib/common/Cargo.toml" + +# Now make sure Cargo.lock is updated to reflect this +cargo update +cd lib +cargo update # Create release commit and tag it #git commit -a -m "Release ${VERSION}"