Open xy-plus opened 4 years ago
cargo 已经提供了build-std feature,可以替代xbuild,这也是目前xbuild仓库readme里建议的做法。参见https://github.com/rust-osdev/cargo-xbuild。
我运行cargo build --target riscv32-os.json 报的错是这样的 error: failed to run rustc
to learn about target-specific information
error: rust-src
component not found. Run rustup component add rust-src
.
一直按照你的方法,但是到这个地方 : 使用 nightly rust toolchains,就还行了。
https://learningos.github.io/rcore_step_by_step_webdoc/docs/%E6%9C%80%E5%B0%8F%E5%8C%96%E5%86%85%E6%A0%B8.html