From d2dd46da3ae107b2902ca772b084c7231d0d71c3 Mon Sep 17 00:00:00 2001 From: Aaron Siddhartha Mondal Date: Fri, 8 Mar 2024 18:27:11 +0100 Subject: [PATCH] Set `rust-version` (#734) 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. --- Cargo.toml | 1 + flake.nix | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c404d2971..004198e7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,7 @@ resolver = "2" name = "nativelink" version = "0.2.0" edition = "2021" +rust-version = "1.76" [profile.release] lto = true diff --git a/flake.nix b/flake.nix index 7e8929a1e..c528812ef 100644 --- a/flake.nix +++ b/flake.nix @@ -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