Pin Rust version to 1.85.0

This commit is contained in:
Hassan Abedi 2026-05-29 15:11:37 +02:00
parent 7f8053d980
commit 0a97f46d9c
5 changed files with 8 additions and 3 deletions

View File

@ -5,6 +5,7 @@ resolver = "3"
[workspace.package] [workspace.package]
edition = "2024" edition = "2024"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
rust-version = "1.85.0"
[workspace.lints.rust] [workspace.lints.rust]
unsafe_code = "forbid" unsafe_code = "forbid"

View File

@ -3,7 +3,7 @@
Independent Rust app crates live in this directory. Independent Rust app crates live in this directory.
Each subdirectory should be a normal Cargo package with its own `Cargo.toml`. Each subdirectory should be a normal Cargo package with its own `Cargo.toml`.
The repository root is a virtual workspace, so shared commands such as `make fmt-check`, `make clippy`, and `make test` run across all crates. The repository root is a virtual workspace, so shared commands such as `make format`, `make lint`, and `make test` run across all crates.
Suggested shape: Suggested shape:

View File

@ -3,6 +3,7 @@ name = "geomerge-demo"
version = "0.1.0" version = "0.1.0"
edition.workspace = true edition.workspace = true
license.workspace = true license.workspace = true
rust-version.workspace = true
[lints] [lints]
workspace = true workspace = true

View File

@ -18,8 +18,8 @@
overlays = [ rust-overlay.overlays.default ]; overlays = [ rust-overlay.overlays.default ];
}; };
# Edition 2024 requires Rust >= 1.85. Pin to a recent stable. # Pinned to match workspace.package.rust-version in Cargo.toml.
rustToolchain = pkgs.rust-bin.stable.latest.default.override { rustToolchain = pkgs.rust-bin.stable."1.85.0".default.override {
extensions = [ "rust-src" "rust-analyzer" "clippy" "rustfmt" ]; extensions = [ "rust-src" "rust-analyzer" "clippy" "rustfmt" ];
}; };
in in

3
rust-toolchain.toml Normal file
View File

@ -0,0 +1,3 @@
[toolchain]
channel = "1.85.0"
components = ["rustfmt", "clippy", "rust-analyzer"]