Skip to content

Commit e373b99

Browse files
committed
Update MSRV to 1.81.0
And reorder CI steps to cache `cargo install` binaries
1 parent 51caf08 commit e373b99

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

.github/workflows/rust-tests.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,17 @@ jobs:
3737
runs-on: ubuntu-24.04
3838

3939
steps:
40-
- name: Show YDB server version
41-
run: docker ps; docker exec ydb /ydbd -V
40+
- name: Checkout
41+
uses: actions/checkout@v4
42+
with:
43+
submodules: true
44+
45+
- name: Rust cache
46+
uses: Swatinem/rust-cache@v2
47+
48+
- name: Cargo install
49+
if: matrix.rust_version == 'RUST_VERSION_NEW'
50+
run: cargo install cargo-sort cargo-udeps cargo-audit cargo-pants
4251

4352
- name: Install stable rust
4453
uses: dtolnay/rust-toolchain@v1
@@ -53,14 +62,8 @@ jobs:
5362
toolchain: nightly
5463
components: clippy, rustfmt
5564

56-
- name: Cargo install
57-
if: matrix.rust_version == 'RUST_VERSION_NEW'
58-
run: cargo install cargo-sort cargo-udeps cargo-audit cargo-pants
59-
60-
- name: Checkout
61-
uses: actions/checkout@v4
62-
with:
63-
submodules: true
65+
- name: Show YDB server version
66+
run: docker ps; docker exec ydb /ydbd -V
6467

6568
- name: Rust version
6669
id: rust_version_step
@@ -70,9 +73,6 @@ jobs:
7073
echo "CARGO_INCREMENTAL=$CARGO_INCREMENTAL"
7174
echo "name=version::$(rustc --version | cut -d ' ' -f 2)" >> $GITHUB_OUTPUT
7275
73-
- name: Rust cache
74-
uses: Swatinem/rust-cache@v2
75-
7676
- name: Rustfmt check
7777
if: matrix.rust_version == 'RUST_VERSION_NEW'
7878
run: cargo fmt --check

ydb-example-urlshortener/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ publish = false
33
name = "ydb-example-urlshortener"
44
version = "0.0.0"
55
edition = "2021"
6-
rust-version = "1.68.0"
6+
rust-version = "1.81.0"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]

ydb-grpc-helpers/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2018"
77
license = "Apache-2.0"
88
description = "Deprecated, not used now. Crate contain helpers for generate grpc imports in ydb-grpc crate."
99
repository = "https://github.com/ydb-platform/ydb-rs-sdk/tree/ydb-grpc-helpers-0.0.11/ydb-grpc-helpers"
10-
rust-version = "1.68.0"
10+
rust-version = "1.81.0"
1111

1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1313
[lib]

ydb-grpc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
license = "Apache-2.0"
88
description = "Crate contains generated low-level grpc code from YDB API protobuf, used as base for ydb crate"
99
repository = "https://github.com/ydb-platform/ydb-rs-sdk/tree/master/ydb-grpc"
10-
rust-version = "1.68.0"
10+
rust-version = "1.81.0"
1111

1212
[dependencies]
1313
prost = "0.13"

ydb-slo-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
license = "Apache-2.0"
88
description = "Crate contains SLO-tests for YDB"
99
repository = "https://github.com/ydb-platform/ydb-rs-sdk/tree/master/ydb-slo-tests"
10-
rust-version = "1.68.0"
10+
rust-version = "1.81.0"
1111

1212
[dependencies]
1313
async-trait = "0.1"

ydb/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
license = "Apache-2.0"
88
description = "Crate contains generated low-level grpc code from YDB API protobuf, used as base for ydb crate"
99
repository = "https://github.com/ydb-platform/ydb-rs-sdk/tree/master/ydb"
10-
rust-version = "1.68.0"
10+
rust-version = "1.81.0"
1111

1212
[features]
1313
force-exhaustive-all = [

0 commit comments

Comments
 (0)