The format is based on Keep a Changelog.
set-version
- Don't overwrite updated dependencies with stale data when modifying multiple packages
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.
- 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
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
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
Many programmatic APIs changed
cargo-add
- Dependency paths are now relative to current working directory, rather than affect crate root (#497)
- Sane defaults when adding a dependency from within the workspace (#504)
- 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)
- 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) - 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)
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)
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:
--all
flag is now deprecated in favor of--workspace
to match cargo (#392 by @pwoolcoc)
This is a minor release that updates the dependencies so that it's easier to use cargo-edit
as a library.
Fixes:
- Adding a dependency that was renamed previously (#351 by @stiiifff)
Full changes: https://github.com/killercup/cargo-edit/compare/v0.4.2...v0.5.0
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 the
Cargo.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
New features:
- new cool feature: try passing
--to-lockfile
tocargo upgrade
(#337 by @tofay) - alternative registries support (#336 by @tofay)
cargo add
now supports--rename
flag (#345)
Bug fixes:
cargo upgrade
works correctly with renamed dependencies (#342 by @stiiifff)cargo-{add, upgrade}
now works with ssh auth for git (#334)cargo upgrade
does not downgrade prerelease dependencies (#348)
Major changes:
cargo add
andcargo upgrade
now supports--offline
mode and minimizes network queries (#317 by @DCjanus)cargo add
now accepts--sort
flag to sort dependencies (#322 by @thiagoarrais)
- Update dependencies to most recent versions
New features:
- add multiple local packages (#295)
- support for
--no-default-features
flag (#290) - rm multiple crates (#289)
Bug fixes:
- strip semver metadata on versions (#304)
Update dependencies, which fixes issues with OpenSSL 1.1.1 (#245)
A lot has happened since the last stable release!
The most important feature sure is that we try to not mess up your Cargo.toml
files anymore!
While we are not 100% there yet, cargo add foo
should give you much nicer edits now.
Other cool features:
- Add proxy support via env variable (#179)
- Allow simultaneous specification of both version and path (thanks, @dherman!)
- Add specific error for a missing crate (thanks, @bjgill!)
cargo-upgrade
now supports--precise
,--dry-run
, and has nicer output