Changelog History
Page 2
-
v0.10.1 Changes
July 15, 2022๐ Features
โฌ๏ธ
upgrade
- ๐ Note the
--pinned
flag when pinned dependencies are skipped
๐ Fixes
add
- Provide a failing command to tell people how to get it
- ๐ Note the
-
v0.10.0 Changes
July 14, 2022๐ฅ Breaking changes
- Many programmatic APIs changed
- ๐
cargo add
remove in favor of the version included with cargo 1.62.0 - โฌ๏ธ
cargo upgrade
skips pinned dependencies by default, run with--pinned
to do them all - โฌ๏ธ
cargo upgrade --skip-compatible
is now default, run with--to-lockfile
to upgrade all - โฌ๏ธ
cargo upgrade
now accepts dependency keys rather than crate names - โฌ๏ธ
cargo upgrade
now preserves version req precision - ๐
cargo upgrade --allow-prerelease
was removed to matchcargo add
๐ Fixes
All
- Align console messages
- ๐ Allow using
--manifest-path
with--pkgid
- ๐ Allow relative paths with
--manifest-path
โฌ๏ธ
upgrade
- โฌ๏ธ Positional arguments are now dependency keys, allowing forcing of renamed dependencies to upgrade
- โฌ๏ธ Make compatible upgrades and precision preservation work together
- Cleaned up output
- Preserve user formatting of dependencies
- Don't confuse dependencies
๐ Features
โฌ๏ธ
upgrade
- Always preserve version req precision
- โฌ๏ธ With
--verbose
, see why dependencies didn't upgrade - โฌ๏ธ Error if upgrades possible with
--locked
- ๐ Allow multiple occurrences of
--pkgid
rm
- โ Add
--target
flag - โ Add
--dry-run
flag
-
v0.9.1 Changes
May 17, 2022๐ Fixes
set-version
- โก๏ธ Don't overwrite updated dependencies with stale data when modifying multiple packages
-
v0.9.0 Changes
March 28, 2022๐ In large part, this release is a test-bed for changes proposed as part of the ๐ path to merging
cargo-add
into cargo. See ๐ internals for more background on the changes.๐ฅ Breaking Changes
- Many programmatic APIs changed
- ๐ Feature flag
vendored-libgit2
is activated by default
cargo-add
- โ Removed
--upgrade <policy>
- โ Removed
--sort
- โ Removed
--allow-prerelease
- โ Removed
cargo add <git-url>
, requiringcargo add --git <git-url>
- โ Removed
--path <path>
in favor ofcargo add <path>
- โ Removed
--vers <version-req>
in favor ofcargo add <name>@<version-req>
- ๐
--git
support is now feature gated as we work out how to expose it
๐ Features
cargo-add
- Lists available features
- Warn when adding non-existent features
- ๐ git
--tag
and--rev
support - โก๏ธ
--default-features
flag for when updating an existing entry - โก๏ธ
--no-optional
flag for when updating an existing entry - ๐ Allow
,
to separate--features
- โ Added
-F
short flag for--features
cargo add serde +derive
feature activation- ๐
--dry-run
support
๐ Fixes
General
- ๐ TOML 1.0 compliant parser
- ๐ Use stderr for user messages
- ๐ Improve detection for enabling colored output
- ๐ Handle empty cargo config
source
table
cargo-add
- ๐ Allow
--registry
withname@version
and path dependencies - Don't panic on
--target=
(ie empty target) - Cleaned up "Adding" message
- ๐ Improve overwrite behavior (re-adding the same dependency)
- ๐ Allow using both
--manifest-path
and--package
- โ Remove invalid dependency activation
- When adding an existing dependency to another table, reuse the existing source information (e.g. version requirement)
cargo-rm
- Don't create empty feature tables
- โ Remove dep activation when no longer optional
โฌ๏ธ cargo-upgrade
- Preserve version requirement precision (behind a feature flag)
cargo-set-version
- ๐ Allow
--metadata
to override version metadata - ๐ Improve dependent detection
-
v0.8.0 Changes
September 22, 2021๐ฅ Breaking Changes
Many programmatic APIs changed
cargo-add
- Dependency paths are now relative to current working directory, rather than affect crate root (#497)
- 0๏ธโฃ Sane defaults when adding a dependency from within the workspace (#504)
๐ Features
- ๐ New
vendored-openssl
crate feature (#447) - ๐ New
vendored-libgit2
crate feature (#488) - ๐ Support for dotted keys in TOML (#491)
cargo-set-version
- ๐ New command to bump crate versions (#482)
- โก๏ธ Automatically update all workspace dependents (#506)
โฌ๏ธ cargo-upgrade
- โ Add
--exclude
(#446)
๐ Fixes
- ๐ Fixed various bugs when interacting with the registry (e.g. #433, #484)
- Read config files with extensions as added with Rust 1.39 (#439)
- rustsec
- Removed unmaintained
dirs
dependency (#440) - Remove dependency on old
hyper
v0.13 (#431)
- Removed unmaintained
- โก๏ธ Respect
--quiet
when updating the index (#462) - Lookup pkg id's relative to
--manifest-path
rather than current working directory (#505)
cargo-add
- Look up versions after updating the index (#483)
- ๐ Allow optional build dependencies (#494)
- Dependency paths are now relative to current working directory, rather than affect crate root (#497)
- Prevent
cargo add .
from working (#501) - 0๏ธโฃ Sane defaults when adding a dependency from within the workspace (#504)
โฌ๏ธ cargo-upgrade
- โก๏ธ Update optional dependencies with
--to-lockfile
(#427) - โฌ๏ธ Actually report upgrade when
package
key is used (#409)
cargo-rm
- โ Remove references among features to crate being removed (#500)
-
v0.7.0 Changes
October 03, 2020๐ New features:
- Keep dependencies in sorted order if they were already sorted (#421 by @joshtriplett)
๐ Fixes:
- ๐ Fix for cargo-nightly (#413 by @meltinglava)
- ๐ Normalise windows-style paths (#403 by @Michael-F-Bryan)
- ๐ Fix for non-lowercase crate names (#398)
-
v0.6.0 Changes
March 19, 2020๐ New features:
- You can now specify a branch for git dependencies (#379 by @struktured)
- ๐ฑ A long awaited feature to support
-p
flag in the workspace is finally there ๐ ` (#390 by @pwoolcoc)
๐ Fixes:
-
v0.5.0 Changes
January 19, 2020๐ This is a minor release that updates the dependencies so that it's easier to use
cargo-edit
as a library.๐ Fixes:
Full changes: v0.4.2...v0.5.0
-
v0.4.2 Changes
December 05, 2019๐ New features:
โ Add a
--skip-compatible
flag to cargo upgrade (#360)โฌ๏ธ This flag will make cargo upgrade ignore upgrades where the old
๐ version is semver compatible with the new one. This is useful in cases
where you don't want to churn theCargo.toml
files in the whole project
knowing that the lockfile is already forcing the versions to be up to date.Other:
- Bunch of internal clean-ups