You've already forked decomp-toolkit
mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2026-03-30 11:06:18 -07:00
12 lines
439 B
Rust
12 lines
439 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
let output = std::process::Command::new("git")
|
|
.args(["rev-parse", "HEAD"])
|
|
.output()
|
|
.expect("Failed to execute git");
|
|
let rev = String::from_utf8(output.stdout).expect("Failed to parse git output");
|
|
println!("cargo:rustc-env=GIT_COMMIT_SHA={rev}");
|
|
println!("cargo:rustc-rerun-if-changed=.git/HEAD");
|
|
wit_deps::lock_sync!()?;
|
|
Ok(())
|
|
}
|