130 releases

new 0.25.14 Dec 12, 2024
0.25.13 Nov 15, 2024
0.25.12 Oct 7, 2024
0.25.10 Jun 21, 2024
0.2.1 Mar 17, 2016

#38 in Cargo plugins

Download history 880/week @ 2024-08-22 936/week @ 2024-08-29 1551/week @ 2024-09-05 958/week @ 2024-09-12 1129/week @ 2024-09-19 1275/week @ 2024-09-26 1596/week @ 2024-10-03 1531/week @ 2024-10-10 1330/week @ 2024-10-17 914/week @ 2024-10-24 1224/week @ 2024-10-31 982/week @ 2024-11-07 1320/week @ 2024-11-14 858/week @ 2024-11-21 1074/week @ 2024-11-28 1320/week @ 2024-12-05

4,669 downloads per month
Used in 17 crates

MIT/Apache

230KB
5.5K SLoC

cargo release

Features

  • Ensure you are in a good state for release, including:
    • Right branch
    • Up-to-date with remote
    • Clean tree
  • Supports workspaces using cargo's native flags, like --workspace, --exclude and --package
    • Updates dependent crates in workspace when changing version
    • Change detection to help guide in what crates might not need a release
    • Optionally share commits
  • Handles cargo publish, tagging, and pushing
  • Pre-release search and replace for custom version updates, including
  • Pre-release hook for extra customization, including

Install

Current release: 0.25.14

$ cargo install cargo-release

Usage

$ cargo release [level]
  • See the reference for more on level, other CLI arguments, and configuration file format.
  • See also the FAQ for help in figuring out how to adapt cargo-release to your workflow.

Prerequisite

  • Your project should be managed by git.

Dry run

By default, cargo-release runs in dry-run mode so you can safely run it and verify what it will do.

  • Increase the logging level with each additional -v to get more details
  • Speed up dry-run by skipping cargo-publishs verify step with --no-verify

Once you are ready, pass the --execute flag.

Semver Compatibility

cargo-release's versioning tracks compatibility for the binaries, not the API. We upload to crates.io to distribute the binary. If using this as a library, be sure to pin the version with a = version requirement operator.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~26–43MB
~771K SLoC