Skip to content

Commit

Permalink
chore: Introduce rust-version in manifest (#2160)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Jan 23, 2025
1 parent 1777e27 commit dcaa679
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hecrj/setup-rust-action@v2
- name: Resolve MSRV aware dependencies
run: cargo update
env:
CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS: fallback
- name: Get MSRV from manifest file
id: msrv
run: echo "version=$(yq '.workspace.package.rust-version' Cargo.toml)" >> $GITHUB_OUTPUT
- uses: hecrj/setup-rust-action@v2
with:
rust-version: "1.75" # msrv
rust-version: ${{ steps.msrv.outputs.version }}
- uses: taiki-e/install-action@cargo-no-dev-deps
- uses: Swatinem/rust-cache@v2
- run: cargo no-dev-deps --no-private check --all-features
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ members = [
]
resolver = "2"

[workspace.package]
rust-version = "1.75"

[workspace.lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
Expand Down
1 change: 1 addition & 0 deletions tonic-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ name = "tonic-build"
readme = "README.md"
repository = "https://github.com/hyperium/tonic"
version = "0.13.0"
rust-version = { workspace = true }

[dependencies]
prettyplease = { version = "0.2" }
Expand Down
1 change: 1 addition & 0 deletions tonic-health/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ name = "tonic-health"
readme = "README.md"
repository = "https://github.com/hyperium/tonic"
version = "0.13.0"
rust-version = { workspace = true }

[dependencies]
prost = "0.13"
Expand Down
1 change: 1 addition & 0 deletions tonic-reflection/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ name = "tonic-reflection"
readme = "README.md"
repository = "https://github.com/hyperium/tonic"
version = "0.13.0"
rust-version = { workspace = true }

[package.metadata.docs.rs]
all-features = true
Expand Down
1 change: 1 addition & 0 deletions tonic-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ name = "tonic-types"
readme = "README.md"
repository = "https://github.com/hyperium/tonic"
version = "0.13.0"
rust-version = { workspace = true }

[dependencies]
prost = "0.13"
Expand Down
1 change: 1 addition & 0 deletions tonic-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ name = "tonic-web"
readme = "README.md"
repository = "https://github.com/hyperium/tonic"
version = "0.13.0"
rust-version = { workspace = true }

[dependencies]
base64 = "0.22"
Expand Down
1 change: 1 addition & 0 deletions tonic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ license = "MIT"
readme = "../README.md"
repository = "https://github.com/hyperium/tonic"
version = "0.13.0"
rust-version = {workspace = true}

[features]
codegen = ["dep:async-trait"]
Expand Down

0 comments on commit dcaa679

Please sign in to comment.