mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-06-06 06:33:28 +00:00
- Avoid overwriting `symbols.txt` or `splits.txt` if the file was modified since it was read or if the file's contents didn't change. - Remove `binrw` and `byteorder` dependencies, moving to `FromReader`/`ToWriter` traits. - Migrate generic bounds to `where` clauses. - Remove unused `build.rs` logic.
10 lines
357 B
Rust
10 lines
357 B
Rust
fn main() {
|
|
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");
|
|
}
|