]> git.proxmox.com Git - cargo.git/commit
fix(add): Limit 'Features as of vX.Y.Z' to when relevant
authorEd Page <eopage@gmail.com>
Mon, 12 Sep 2022 14:46:22 +0000 (09:46 -0500)
committerEd Page <eopage@gmail.com>
Mon, 12 Sep 2022 14:46:22 +0000 (09:46 -0500)
commit7ce2b7d42a156f90b41fa6c68fc4dd5f9cb2b226
treea9db278be86aeb0fb8d5b7e702d4f29f3b35ad36
parent73906aeaf8b342f38fd7b6b7a40da028f55c3d15
fix(add): Limit 'Features as of vX.Y.Z' to when relevant

This will only show the messaeg if we didn't already show a version req
with full precision specified ... mostly.  We'll also skip it if its a
local or git dependency but we never show the version in those cases
because it doesn't matter.

The `precise_version` logic came from cargo-upgrade.
src/cargo/ops/cargo_add/mod.rs
tests/testsuite/cargo_add/add_normalized_name_external/stderr.log
tests/testsuite/cargo_add/build_prefer_existing_version/stderr.log
tests/testsuite/cargo_add/list_features_path/stderr.log
tests/testsuite/cargo_add/list_features_path_no_default/stderr.log
tests/testsuite/cargo_add/overwrite_name_dev_noop/stderr.log
tests/testsuite/cargo_add/overwrite_name_noop/stderr.log
tests/testsuite/cargo_add/overwrite_path_noop/stderr.log
tests/testsuite/cargo_add/overwrite_workspace_dep_features/stderr.log