From add80706df57a39eefa54c14c3292219b2ac2a1a Mon Sep 17 00:00:00 2001 From: Aphek Date: Fri, 12 Jan 2024 04:57:49 -0300 Subject: [PATCH] Add rust-src component to recommended rust-toolchain.toml (#11) Required for `-Z build-std` See https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file --- src/check.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/check.rs b/src/check.rs index 52746be..0d7d293 100644 --- a/src/check.rs +++ b/src/check.rs @@ -18,7 +18,8 @@ pub fn check_rust_version() { - Run cargo with +nightly flag.\n \ - Create a rust-toolchain.toml in the root with the following content:\n \ [toolchain]\n \ - channel = \"nightly\"" + channel = \"nightly\"\n \ + components = [ \"rust-src\" ]" ); process::exit(1); }