cargo
cargo copied to clipboard
The Rust package manager
### Call for testing The MSRV-aware resolver part of this RFC is implemented and we are wanting to collect feedback in preparation for stabilization. The goal is to allow you...
Fixes #13868. The build error in the issue will now include a suggestion: ``` Compiling zerocopy v0.8.0-alpha.9 error: the `cargo::` syntax for build script output instructions was added in Rust...
### Problem I'm working on a crate registry where I'm able to advertise a set of crate versions that *may* be generated, but the crates themselves are only lazily generated...
### Problem Recently standardized `--check-cfg` started triggering in my project. There is some common pattern in crates that want to use another nightly feature, `doc_cfg`, to do stuff like: ```toml...
Currently, zerocopy's `build.rs` script contains the following: ```rust for version_cfg in version_cfgs { if rustc_version >= version_cfg.version { println!("cargo:rustc-cfg={}", version_cfg.cfg_name); } } ``` We have a lot of `cfg`s that...
Fixes #13862 Dependencies with same package name in the `Cargo.lock` was squashed in `EncodableResolve::into_resolve()`. e.g. In the problem reproduction repo's Cargo.lock, there are two entries: ```toml [[package]] name = "once_cell"...
### What does this PR try to resolve? Currently, when using `-Zbuild-std`, Cargo passes a `--sysroot` argument down to the relevant `rustc` invocations. However, the value of this argument is...
### Problem Currently `cargo --list` prints descriptions only for the builtin subcommands. For third-party subcommands like `cargo expand` it does not print a description. ```console $ cargo --list Installed Commands:...
### Problem The `panic` setting is ignored for benchmarks since (by default) they link `libtest` which is compiled with `panic = "unwind"`. This would otherwise lead to confusing errors at...
### Problem Occasionally, crates release a semver-violating version that causes breakage when consumed. Cargo currently has two main features to address this issue: 1. Crate authors can mark the offending...