mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Add rust-src component
This commit is contained in:
@@ -593,8 +593,8 @@ kernel = { path = "kernel", artifact = "bin", target = "x86_64-unknown-none" }
|
||||
bootloader = "0.11.3"
|
||||
```
|
||||
|
||||
The crate requires the `llvm-tools` component of `rustup`, which is not installed by default.
|
||||
To install it, we update our `rust-toolchain.toml` file:
|
||||
The crate requires the `rust-src` and `llvm-tools` components of `rustup`, which are not installed by default.
|
||||
To install them, we update our `rust-toolchain.toml` file:
|
||||
|
||||
```toml ,hl_lines=6
|
||||
# rust-toolchain.toml
|
||||
@@ -602,7 +602,7 @@ To install it, we update our `rust-toolchain.toml` file:
|
||||
[toolchain]
|
||||
channel = "nightly"
|
||||
targets = ["x86_64-unknown-none"]
|
||||
components = ["llvm-tools-preview"]
|
||||
components = ["rust-src", "llvm-tools-preview"]
|
||||
```
|
||||
|
||||
If we run `cargo build` now, the bootloader should be built as a dependency.
|
||||
|
||||
Reference in New Issue
Block a user