From aa0b922a5f051ed5a2106ba1319ef791313ae82a Mon Sep 17 00:00:00 2001 From: Roderick van Domburg Date: Tue, 23 Dec 2025 08:42:25 +0100 Subject: [PATCH] fix: remove rust-toolchain.toml to avoid forcing toolchain on all developers PR #814 added rust-toolchain.toml for Nix flake support, but this file affects all developers using rustup, not just Nix users. The pinned version (1.91) is outdated and conflicts with CI which tests against stable/beta/nightly. This change: - Removes rust-toolchain.toml - Updates flake.nix to specify stable Rust directly using rust-overlay - Keeps Nix-specific config in Nix files without affecting other devs --- flake.nix | 4 +++- rust-toolchain.toml | 10 ---------- 2 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 rust-toolchain.toml diff --git a/flake.nix b/flake.nix index af08aa64..40775e2a 100644 --- a/flake.nix +++ b/flake.nix @@ -8,7 +8,9 @@ inputs: inputs.utils.lib.eachDefaultSystem ( system: let pkgs = inputs.nixpkgs.legacyPackages.${system}.extend inputs.rust-overlay.overlays.default; - rust = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml; + rust = pkgs.rust-bin.stable.latest.default.override { + extensions = [ "rust-src" "rust-analyzer" ]; + }; in { devShell = pkgs.mkShell { nativeBuildInputs = with pkgs; [ diff --git a/rust-toolchain.toml b/rust-toolchain.toml deleted file mode 100644 index b3d725d7..00000000 --- a/rust-toolchain.toml +++ /dev/null @@ -1,10 +0,0 @@ -[toolchain] -channel = "1.91" -components = [ - "rustc", - "cargo", - "clippy", - "rustfmt", - "rust-analyzer", - "rust-src", -]