mirror of
https://github.com/cloudhead/rx.git
synced 2024-11-20 18:09:56 +03:00
Get software version from cargo
This commit is contained in:
parent
0f3a4886c0
commit
cf329db442
6
RELEASE
6
RELEASE
@ -3,12 +3,12 @@
|
||||
RELEASE CHECKLIST
|
||||
|
||||
|
||||
0. Run tests & clippy
|
||||
1. Tag the release commit:
|
||||
|
||||
git tag -s vX.X.X
|
||||
|
||||
2. Update the version constant in `src/lib.rs`
|
||||
3. Update the version in Cargo.toml
|
||||
4. Push tags:
|
||||
2. Update the version in Cargo.toml
|
||||
3. Push tags:
|
||||
|
||||
git push --tags
|
||||
|
@ -65,7 +65,7 @@ use std::path::{Path, PathBuf};
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
/// Program version.
|
||||
pub const VERSION: &str = "0.4.0";
|
||||
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
#[global_allocator]
|
||||
pub static ALLOCATOR: alloc::Allocator = alloc::Allocator::new(System);
|
||||
|
Loading…
Reference in New Issue
Block a user