| Crates.io | minver_rs |
| lib.rs | minver_rs |
| version | 0.3.1 |
| created_at | 2021-09-11 18:34:05.819533+00 |
| updated_at | 2021-11-02 04:23:25.427814+00 |
| description | A Rust implementation of minver |
| homepage | |
| repository | https://github.com/dktrotti/minver_rs |
| max_upload_size | |
| id | 449827 |
| size | 64,795 |
Implementation of https://github.com/adamralph/minver using Rust
The CLI binary allows minver to be run as a regular command.
minver_rs using cargo> cargo install minver_rs
minver (Note: Make sure that .cargo\bin is on your PATH)> minver
1.2.3
The build util binary is a tool that can be integrated into your build to automatically update Cargo.toml with the correct version.
minver_rs using cargo> cargo install minver_rs
MINVER_UPDATE_VERSION> export MINVER_UPDATE_VERSION=1
minver_build_util (Note: Make sure that .cargo\bin is on your PATH)> minver_build_util
minver_rs can also be used directly in build.rs.
minver_rs[build-dependencies]
minver_rs = "x.y.z"
version in Cargo.toml to be 0.0.0. While this is not strictly necessary, it helps to make it apparent that the version is handled automatically by minver.build.rs to your project root.use minver_rs::build_utils;
fn main() {
println!("cargo:rerun-if-changed=build.rs");
build_utils::default_build_action();
}
MINVER_UPDATE_VERSION> export MINVER_UPDATE_VERSION=1
> cargo build