Get software version from cargo

This commit is contained in:
Alexis Sellier 2021-04-04 19:39:02 +02:00
parent 0f3a4886c0
commit cf329db442
No known key found for this signature in database
GPG Key ID: 3E3C1B6185AC4475
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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);