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
+4
View File
@@ -26,3 +26,7 @@ pub fn init_version(version: &'static str) {
pub fn init_features(features: &'static [&'static str]) {
FEATURES.store(Some(Arc::new(features)));
}
pub fn rust_version() -> &'static str {
env!("RUSTC_VERSION")
}