### Problem Cargo supports having both `version` and `path` attributes for dependencies declared in Cargo.toml. When using `cargo add crate-name@x.x.x`, any `path` attribute on the crate is getting silently removed. Also, providing both a remote crate and a path attribute (like `cargo add crate-name@x.x.x --path some/path`) is not supported. ### Proposed Solution Cargo should not remove the `path` attribute on the dependency when using `cargo add crate-name@x.x.x`. Also, providing both a remote and a path option at the same time should be supported, since Cargo supports having both in Cargo.toml. I believe it used to be supported by cargo-edit (see in this examples section https://crates.io/crates/cargo-edit-9). ### Notes _No response_