File tree Expand file tree Collapse file tree 8 files changed +18
-1
lines changed Expand file tree Collapse file tree 8 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 90
90
runs-on : ubuntu-latest
91
91
steps :
92
92
- uses : actions/checkout@v4
93
+ - uses : hecrj/setup-rust-action@v2
94
+ - name : Resolve MSRV aware dependencies
95
+ run : cargo update
96
+ env :
97
+ CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS : fallback
98
+ - name : Get MSRV from manifest file
99
+ id : msrv
100
+ run : echo "version=$(yq '.workspace.package.rust-version' Cargo.toml)" >> $GITHUB_OUTPUT
93
101
- uses : hecrj/setup-rust-action@v2
94
102
with :
95
- rust-version : " 1.75 " # msrv
103
+ rust-version : ${{ steps. msrv.outputs.version }}
96
104
- uses : taiki-e/install-action@cargo-no-dev-deps
97
105
- uses : Swatinem/rust-cache@v2
98
106
- run : cargo no-dev-deps --no-private check --all-features
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ members = [
31
31
]
32
32
resolver = " 2"
33
33
34
+ [workspace .package ]
35
+ rust-version = " 1.75"
36
+
34
37
[workspace .lints .rust ]
35
38
missing_debug_implementations = " warn"
36
39
missing_docs = " warn"
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ name = "tonic-build"
13
13
readme = " README.md"
14
14
repository = " https://github.com/hyperium/tonic"
15
15
version = " 0.13.0"
16
+ rust-version = { workspace = true }
16
17
17
18
[dependencies ]
18
19
prettyplease = { version = " 0.2" }
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ name = "tonic-health"
13
13
readme = " README.md"
14
14
repository = " https://github.com/hyperium/tonic"
15
15
version = " 0.13.0"
16
+ rust-version = { workspace = true }
16
17
17
18
[dependencies ]
18
19
prost = " 0.13"
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ name = "tonic-reflection"
16
16
readme = " README.md"
17
17
repository = " https://github.com/hyperium/tonic"
18
18
version = " 0.13.0"
19
+ rust-version = { workspace = true }
19
20
20
21
[package .metadata .docs .rs ]
21
22
all-features = true
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ name = "tonic-types"
16
16
readme = " README.md"
17
17
repository = " https://github.com/hyperium/tonic"
18
18
version = " 0.13.0"
19
+ rust-version = { workspace = true }
19
20
20
21
[dependencies ]
21
22
prost = " 0.13"
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ name = "tonic-web"
13
13
readme = " README.md"
14
14
repository = " https://github.com/hyperium/tonic"
15
15
version = " 0.13.0"
16
+ rust-version = { workspace = true }
16
17
17
18
[dependencies ]
18
19
base64 = " 0.22"
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ license = "MIT"
21
21
readme = " ../README.md"
22
22
repository = " https://github.com/hyperium/tonic"
23
23
version = " 0.13.0"
24
+ rust-version = {workspace = true }
24
25
25
26
[features ]
26
27
codegen = [" dep:async-trait" ]
You can’t perform that action at this time.
0 commit comments