Watch
0
0
Fork
You've already forked esp32-c_its-companion
0

WIP ble: Add device information service

TODO: Determine "git describe" size
This commit is contained in:
Jannik Beyerstedt 2026-09-29 16:38:52 +02:00
commit 1adf6a5eb0
4 changed files with 142 additions and 1 deletions

View file

@ -17,6 +17,21 @@ fn main() -> std::io::Result<()> {
.compile_well_known_types()
.compile_protos(&["docs/c_its-messages.proto"], &["docs/"])?;
// get git revision
println!("cargo:rustc-rerun-if-changed=.git/HEAD");
println!(
"cargo:rustc-env=GIT_REVISION={}",
String::from_utf8(
std::process::Command::new("git")
.args(&["describe", "--always"])
.output()
.unwrap()
.stdout,
)
.unwrap()
);
Ok(())
}