Skip to content

Commit

Permalink
Set rust-version (#734)
Browse files Browse the repository at this point in the history
The Cargo build now raises an error if the Rust version doesn't match.

Fixes a bug where the flake version wasn't in sync with the Bazel build.
  • Loading branch information
aaronmondal committed Mar 8, 2024
1 parent 35daf43 commit d2dd46d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Expand Up @@ -5,6 +5,7 @@ resolver = "2"
name = "nativelink"
version = "0.2.0"
edition = "2021"
rust-version = "1.76"

[profile.release]
lto = true
Expand Down
4 changes: 2 additions & 2 deletions flake.nix
Expand Up @@ -40,8 +40,8 @@
system,
...
}: let
stable-rust = pkgs.rust-bin.stable."1.75.0";
nightly-rust = pkgs.rust-bin.nightly."2024-01-01";
stable-rust = pkgs.rust-bin.stable."1.76.0";
nightly-rust = pkgs.rust-bin.nightly."2024-03-01";

maybeDarwinDeps = pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.Security
Expand Down

0 comments on commit d2dd46d

Please sign in to comment.