cargo
cargo copied to clipboard
The Rust package manager
### Problem Cargo emits confusing errors when trying to use example crates ### Steps When you have an example crate, and define it in the main crate's cargo.toml with ```...
### Problem The GNU make jobserver protocol leaks threads if a process dies while holding a token. For example: 1. Parent process creates the pipe and puts 2 tokens into...
**Describe the problem you are trying to solve** When creating a new cargo project using the `cargo new` subcommand inside an existing git repository, cargo does not create a `.gitignore`...
FCP: https://github.com/rust-lang/cargo/pull/16284#issuecomment-3563644951 # Stabilization report ## Summary The `include` key in Cargo configuration files allows loading additional config files, enabling better organization, sharing, and management of Cargo configurations across projects...
rust-analyzer analyzes `cfg(rust_analyzer)`, but rustc warns it ```rust #[cfg_attr(rust_analyzer, doc(notable_trait))] pub trait Foo { type Out; } ```
Like RUSTFLAGS, build scripts are an important escape hatch. Like RUSTFLAGS (#12739), we should find replacements for common uses of build scripts so people don't have to reach to this...
### What does this PR try to resolve? Cargo should not load configuration twice if the config is symlinked resolves #16206 ### How to test and review this PR? >...
Implementation: - [x] #15848 - [x] #15947 Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#build-dir-new-layout ## Known issues - As a side effect, we pass a lot more parameters to rustc, likely making `cargo -vv` more...
### Problem Since cargo 1.89.0 including current version (1.91.0) cargo is unable to download the registry manifest or crates. We are seeing spurious network warning when cargo tries to update...
### What does this PR try to resolve? Add a new `cargo::imprecise_version_requirements` lint: Only check if dependency has a single caret requirement. All other requirements (multiple, tilde, wildcard) are not...