rpc/system_metrics.rs: Added rustversion label to garage_build_info metric.

This commit is contained in:
Jonathan Davies
2023-03-10 11:40:58 +00:00
parent 9e061d5a70
commit 25f2a46fc3
5 changed files with 20 additions and 4 deletions
+8
View File
@@ -0,0 +1,8 @@
use rustc_version::version;
fn main() {
// Acquire the version of Rust used to compile, this is added as a label to
// the garage_build_info metric.
let v = version().unwrap();
println!("cargo:rustc-env=RUSTC_VERSION={v}");
}