From e4f7b301b510f5cd18f0a4001165a3fb607c7317 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Thu, 29 Sep 2022 00:24:46 +0200 Subject: [PATCH] Use the version from Cargo --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 3c25593..d33b928 100644 --- a/src/main.rs +++ b/src/main.rs @@ -34,7 +34,7 @@ use crate::ratecontroller::{Ratecontroller, StatsDirection}; use crate::reflector_selector::ReflectorSelector; use crate::utils::Utils; -const VERSION: &str = "0.0.1"; +const VERSION: &str = env!("CARGO_PKG_VERSION"); fn main() -> ExitCode { println!("Starting sqm-autorate version {}", VERSION);