Version 0.2.1

- Build static Linux binaries
- Use cargo-zigbuild for cross compilation
This commit is contained in:
2022-12-14 13:06:51 -05:00
parent 141339fcb0
commit 21c386d1a6
6 changed files with 28 additions and 272 deletions

View File

@@ -1,4 +1,7 @@
use anyhow::Result;
use vergen::{vergen, Config};
fn main() -> Result<()> { vergen(Config::default()) }
fn main() -> Result<(), Box<dyn std::error::Error>> {
let output = std::process::Command::new("git").args(["rev-parse", "HEAD"]).output()?;
let rev = String::from_utf8(output.stdout)?;
println!("cargo:rustc-env=GIT_COMMIT_SHA={rev}");
println!("cargo:rustc-rerun-if-changed=.git/HEAD");
Ok(())
}