Files
furumusic/build.rs
T
ab dcc665563a
Build and Publish / Build and Publish Docker Image (push) Successful in 2m47s
Reworked Reviews page
2026-05-25 13:50:24 +03:00

15 lines
471 B
Rust

fn main() {
println!(
"cargo::rustc-env=FURU_TARGET={}",
std::env::var("TARGET").unwrap()
);
let rustc = std::env::var("RUSTC").unwrap_or_else(|_| "rustc".into());
let output = std::process::Command::new(rustc)
.arg("--version")
.output()
.expect("failed to run rustc --version");
let version = String::from_utf8_lossy(&output.stdout);
println!("cargo::rustc-env=FURU_RUSTC_VERSION={}", version.trim());
}