From 6fc7fd2bafdf211c0f28b2438155bb06b4200d73 Mon Sep 17 00:00:00 2001 From: Dasha Mukhina Date: Wed, 4 Sep 2024 10:02:43 +0400 Subject: [PATCH] fix: unresolved import [of std] on NixOS in RA On NixOS, when entering the devshell, Rust Analyzer couldn't locate `std` (sysroot) since it was missing. --- rust-toolchain.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 8cca5be0..60487176 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,3 @@ [toolchain] channel = "1.80" +components = [ "rust-src" ]