cargo
cargo copied to clipboard
The Rust package manager
### What it does Warns if a version req is `1.3` or `1` rather than `1.3.5` ### Advantage This can help with more correct minimum bounds because patch packages can...
**Describe the problem you are trying to solve** It seems like some crate authors do not ask cargo to exclude pictures/pdfs/other-blobs by providing an appropriate `exclude = [ .. ]`...
EDIT: the issue now has [mentoring instructions](https://github.com/rust-lang/cargo/issues/5340#issuecomment-381185091). Note that to implement this, we'll need to add additional API to semver crate as well! Cargo more-or-less enforces contract on crate authors...
I've seen multiple times that some images which is used in README only is included into crate package, e.g. [bindgen](https://crates.io/crates/bindgen) contains a 1.3MB PNG, and [dtoa](https://crates.io/crates/dtoa) contains a 68KB PNG....
### What does this PR try to resolve? Not all examples show up in auto-completion. If the `examples` directory has nested examples, only the top level ones will be shown...
I tried this code: ```toml # empty project [workspace.dependencies] shakmaty = { git = "https://github.com/niklasf/shakmaty", branch = "master", default-features = false } [patch.crates-io] shakmaty = { workspace = true }...
In the documentation rendered [here](https://doc.rust-lang.org/cargo/reference/features.html) indicates the existence of an `--all-features` flag, which does not appear to exist when I run `cargo add --all-features serde` as an example. Current version:...
### Problem Unclear error message when workspace dep cannot be inherited in patch. See also https://github.com/rust-lang/cargo/pull/12001#discussion_r1171995318 ### Steps 1. Try `cannot_inherit_in_patch` unit test. ```rust #[cargo_test] fn cannot_inherit_in_patch() { Package::new("bar", "0.1.0").publish();...
This documentation https://github.com/rust-lang/cargo/blob/master/src/doc/src/reference/build-scripts.md is authored on the assumption that the cargo owned `build-rs` crate is not used for build scripts. We should consider rewriting this in terms of `build-rs` in...
### Problem There are a few related issues to this: #5896 is maybe the closest. Concrete example: I want to use the `webbrowser` crate. `webbrowser` depends on `jni` for `target_os...