diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index afc83fc..4425026 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,15 +21,15 @@ env: on: pull_request: types: - - opened - - synchronize - - reopened - - closed + - opened + - synchronize + - reopened + - closed branches: - - main + - main push: branches: - - main + - main jobs: build: name: Build and Test @@ -37,20 +37,20 @@ jobs: permissions: contents: read steps: - - name: Checkout Code - uses: actions/checkout@v4 - - uses: arduino/setup-protoc@v3 - - name: Setup Rust Toolchain - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - toolchain: stable, nightly - components: clippy, rustfmt - - name: Cargo Test - run: cargo test --all-features --workspace - - name: Cargo Fmt - run: cargo +nightly fmt --check - - name: Cargo Clippy - run: cargo +nightly clippy --all-features --workspace -- -D warnings + - name: Checkout Code + uses: actions/checkout@v4 + - uses: arduino/setup-protoc@v3 + - name: Setup Rust Toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: stable, nightly + components: clippy, rustfmt + - name: Cargo Test + run: cargo test --all-features --workspace + - name: Cargo Fmt + run: cargo +nightly fmt --check + - name: Cargo Clippy + run: cargo +nightly clippy --all-features --workspace -- -D warnings deploy: if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} name: Deploy to Shuttle @@ -58,9 +58,9 @@ jobs: permissions: contents: write steps: - - name: Checkout Code - uses: actions/checkout@v4 - - uses: shuttle-hq/deploy-action@v2 - with: - shuttle-api-key: ${{ secrets.SHUTTLE_API_KEY }} - project-id: proj_01JDWN5ZZV23FVGYHMCFHM8390 + - name: Checkout Code + uses: actions/checkout@v4 + - uses: shuttle-hq/deploy-action@v2 + with: + shuttle-api-key: ${{ secrets.SHUTTLE_API_KEY }} + project-id: proj_01JDWN5ZZV23FVGYHMCFHM8390 diff --git a/Cargo.lock b/Cargo.lock index 348b5a3..36444d2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 4 +version = 3 [[package]] name = "addr2line" @@ -262,9 +262,9 @@ checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" [[package]] name = "cc" -version = "1.2.1" +version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47" +checksum = "f34d93e62b03caf570cccc334cbc6c2fceca82f39211051345108adcba3eebdc" dependencies = [ "shlex", ] @@ -1037,9 +1037,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.166" +version = "0.2.167" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2ccc108bbc0b1331bd061864e7cd823c0cab660bbe6970e66e2c0614decde36" +checksum = "09d6582e104315a817dff97f75133544b2e094ee22447d2acf4a74e189ba06fc" [[package]] name = "linked-hash-map" @@ -1610,7 +1610,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "22505a5c94da8e3b7c2996394d1c933236c4d743e81a410bcca4e6989fc066a4" dependencies = [ "bytes", - "heck 0.4.1", + "heck 0.5.0", "itertools 0.12.1", "log", "multimap", @@ -1862,6 +1862,7 @@ dependencies = [ "opentelemetry-semantic-conventions 0.14.0", "opentelemetry_sdk 0.22.1", "prost 0.12.6", + "prost-build", "prost-types", "shuttle-axum", "shuttle-runtime 0.49.0", diff --git a/Cargo.toml b/Cargo.toml index dfa846a..5e8a0be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,28 +6,28 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -hyper = { version = "0.14.28", features = ["full"] } -tokio = { version = "1.36.0", features = ["full"] } +hyper = { version = "0.14.31", features = ["full"] } +tokio = { version = "1.41.1", features = ["full"] } tonic = "0.11.0" tonic-reflection = "0.11.0" -prost = "0.12.3" -prost-types = "0.12.3" +prost = "0.12.6" +prost-types = "0.12.6" tower = "0.4.13" -hyper-util = { version = "0.1.3", features = ["tokio"] } -http-body-util = "0.1.0" -anyhow = "1.0.82" -once_cell = "1.19.0" -tonic-tracing-opentelemetry = "0.18.1" +hyper-util = { version = "0.1.10", features = ["tokio"] } +http-body-util = "0.1.2" +anyhow = "1.0.93" +once_cell = "1.20.2" +tonic-tracing-opentelemetry = "0.18.2" opentelemetry = { version = "0.22.0", features = ["trace"] } opentelemetry_sdk = { version = "0.22.1", features = ["trace", "rt-tokio"] } opentelemetry-semantic-conventions = "0.14.0" -opentelemetry-http = "0.11.0" +opentelemetry-http = "0.11.1" opentelemetry-otlp = { version = "0.15.0", features = [ - "trace", - # required to make grpc requests - "tls-roots", + "trace", + # required to make grpc requests + "tls-roots", ] } -tracing = "0.1.40" +tracing = "0.1.41" tracing-opentelemetry = "0.23.0" tracing-subscriber = "0.3.18" shuttle-runtime = "0.49.0" @@ -37,6 +37,7 @@ async-trait = "0.1" [build-dependencies] gh-workflow = "0.5.1" tonic-build = "0.11.0" +prost-build = "0.12" [dev-dependencies] gh-workflow = "0.5.1"