-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6406236
commit 72a7e36
Showing
18 changed files
with
740 additions
and
623 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use std::process::Command; | ||
|
||
fn main() { | ||
let output = Command::new("git") | ||
.args(["rev-parse", "--short", "HEAD"]) | ||
.output() | ||
.expect("error getting git hash. Does `git rev-parse --short HEAD` work for you?"); | ||
let git_hash = String::from_utf8(output.stdout) | ||
.expect("Error passing output of `git rev-parse --short HEAD`"); | ||
println!("cargo:rustc-env=GIT_HASH={git_hash}"); | ||
} |
Oops, something went wrong.