Skip to content

Commit 6d02874

Browse files
authored
Suggestion for .cargo/config.toml Explanation (#974)
I was confused on what the 'unstable' section of my .cargo/config.toml file should look like once I started getting linking errors when going through the third post. It turned out it was because I overwrote the previous 'unstable' configuration with the latter one. In other words, I thought we were to overwrite "build-std = ["core", "compiler_builtins"]" under the "unstable" config, with "build-std-features = ["compiler-builtins-mem"]" and NOT have both present. I think this makes it more clear that both are supposed to be present.
1 parent d3f5bb5 commit 6d02874

File tree

1 file changed

+1
-0
lines changed
  • blog/content/edition-2/posts/02-minimal-rust-kernel

1 file changed

+1
-0
lines changed

blog/content/edition-2/posts/02-minimal-rust-kernel/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ Fortunately, the `compiler_builtins` crate already contains implementations for
306306

307307
[unstable]
308308
build-std-features = ["compiler-builtins-mem"]
309+
build-std = ["core", "compiler_builtins"]
309310
```
310311

311312
(Support for the `compiler-builtins-mem` feature was only [added very recently](https://github.com/rust-lang/rust/pull/77284), so you need at least Rust nightly `2020-09-30` for it.)

0 commit comments

Comments
 (0)