aboutsummaryrefslogblamecommitdiff
path: root/src/util/build.rs
blob: a4e955b83fbc989c447324d16ee3172ce14b3f37 (plain) (tree)
1
2
3
4
5
6
7
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}");
}