cargo icon indicating copy to clipboard operation
cargo copied to clipboard

The Rust package manager

Results 746 cargo issues
Sort by recently updated
recently updated
newest added

### 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...

S-triage
A-new-lint

**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 = [ .. ]`...

Command-publish
C-feature-request
S-needs-design
A-new-lint

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...

Command-publish
Command-package
S-needs-design
A-new-lint

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....

Command-package
C-enhancement
S-needs-design
A-new-lint

### 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...

S-waiting-on-review
A-completions

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 }...

C-bug
A-workspaces
A-patch
S-triage

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:...

A-documenting-cargo-itself

### 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();...

C-bug
A-diagnostics
A-patch
S-needs-design
A-workspace-inheritance

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...

A-documenting-cargo-itself
A-build-scripts

### 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...

C-feature-request
A-dependency-resolution
Command-vendor
A-lockfile
S-triage