Description
I tried to enable vendoring in config.toml
and then following the instructions given by ./x.py
.
I expected to see this happen: All dependencies are vendored.
Instead, this happened:
$ ./x.py build
error: vendoring required, but vendor directory does not exist.
Run `cargo vendor --sync ./src/tools/cargo/Cargo.toml --sync ./src/tools/rust-analyzer/Cargo.toml --sync ./compiler/rustc_codegen_cranelift/Cargo.toml --sync ./src/bootstrap/Cargo.toml ` to initialize the vendor directory.
Alternatively, use the pre-vendored `rustc-src` dist component.
[...]
$ cargo vendor --sync ./src/tools/cargo/Cargo.toml --sync ./src/tools/rust-analyzer/Cargo.toml --sync ./compiler/rustc_codegen_cranelift/Cargo.toml --sync ./src/bootstrap/Cargo.toml
error: failed to load manifest for workspace member `/home/gh-bjorn3/rust/library/std`
Caused by:
failed to parse manifest at `/home/gh-bjorn3/rust/library/std/Cargo.toml`
Caused by:
the cargo feature `public-dependency` requires a nightly version of Cargo, but this is the `stable` channel
See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information about Rust release channels.
See https://doc.rust-lang.org/cargo/reference/unstable.html#public-dependency for more information about using this feature.
To work around this, I need to explicitly use a nightly cargo.
Meta
Caused by #111076 enabling the public-dependency
unstable cargo feature.