mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 21:47:02 +00:00
17 lines
392 B
Rust
17 lines
392 B
Rust
use vergen::{vergen, Config};
|
|
|
|
use std::process::Command;
|
|
|
|
fn main() {
|
|
if let Ok(output) = Command::new("git")
|
|
.args(["config", "--get", "remote.origin.url"])
|
|
.output()
|
|
{
|
|
if let Ok(git_origin) = String::from_utf8(output.stdout) {
|
|
println!("cargo:rustc-env=GIT_ORIGIN_URL={}", git_origin);
|
|
}
|
|
}
|
|
|
|
vergen(Config::default()).unwrap();
|
|
}
|