killercup / cargo-edit

A utility for managing cargo dependencies from the command line.
http://killercup.github.io/cargo-edit/
MIT License
3.09k stars 148 forks source link

`cargo add` should support passing both crate from registry and local path #905

Closed rnza0u closed 2 months ago

rnza0u commented 2 months ago

Cargo supports having both version and path attributes for dependencies declared in Cargo.toml.

When using cargo add, we should be able to use this syntax without getting an error:

cargo add crate-name@x.x.x --path some/path

Is there a specific reason why this is not supported ?

Thanks

epage commented 2 months ago

cargo add is no longer maintained in this repo but has been merged into Cargo.