This a script standardize release of cargo project for you.
Basically it runs following tasks:
cargo publish
git push
cargo install cargo-release
cargo release
Use -l [level]
or --level [level]
to specify a release level.
patch
and current version is a prerelease, it behaves
like default; if current version has no extension, it bumps patch
version (0.1.0 -> 0.1.1)minor
, it bumps minor version (0.1.0-pre -> 0.2.0)major
, it bumps major version (0.1.0-pre -> 1.0.0)Use --sign
option to GPG sign your release commits and
tags. Further
information
By using --upload-doc
option, cargo-release will generate rustdoc
during release process, and commit the doc directory to gh-pages
branch. So you can access your rust doc at
https://YOUR-GITHUB-USERNAME.github.io/YOUR-REPOSITORY-NAME/YOUR-CRATE-NAME
Currently only github pages is supported.
This option will override your existed gh-pages
branch,
use it at your own risk.
Licensed under either of
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.