From c2ec1d9504a1e76f5b85648ea532decfae94dc3c Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 2 Jun 2024 12:55:53 +0200 Subject: [PATCH] Move rust components to devShell instead of global rust-toolchain --- flake.nix | 3 +-- rust-toolchain.toml | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 1937707..57a17a1 100644 --- a/flake.nix +++ b/flake.nix @@ -25,11 +25,10 @@ devShells = { default = pkgs.mkShell { buildInputs = [ - rust + (rust.override { extensions = ["rust-src" "rust-analyzer"]; }) nodejs pkgs.cargo-leptos pkgs.dart-sass - pkgs.rust-analyzer ]; }; }; diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 062a255..00fb07c 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,3 @@ [toolchain] channel = "nightly" -components = ["rust-std", "rust-src", "rustc-dev" ] targets = ["wasm32-unknown-unknown"] \ No newline at end of file