1 unstable release
Uses old Rust 2015
0.1.0 | Jan 4, 2018 |
---|
#72 in #versioning
11KB
197 lines
semver-binary
Semver-binary can be used to manipulate version data from CLI. This is intended mainly for CI scripts.
Usage
Suppose the following versions:
production 1.2.3
testing 1.3.0-beta
testing CI $testing+CI.git_ci_id
You can use semver to automatically create these versions correctly for you: production -> testing
PRODUCTION="1.2.3"
semver $PRODUCTION -m --pre beta
"1.3.0-beta"
testing -> CI autodeploy
TESTING="1.3.0-beta"
semver $TESTING --meta CI --meta 6fe444c # git rev-parse --short HEAD
"1.3.0-beta+CI.6fe444c"
These versions can be used for your Dockerfile, docker image tag, application version (for API/binary versioning) and others.
Building
cargo build --release
Dependencies
~2MB
~27K SLoC