We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6de459d + f95bfc1 commit 8f751e7Copy full SHA for 8f751e7
crates/extensions/tedge-p11-server/build.rs
@@ -0,0 +1,10 @@
1
+fn main() {
2
+ // export GIT_SEMVER=$(git describe --always --tags --abbrev=8 --dirty)
3
+ // https://github.com/rust-lang/cargo/issues/6583#issuecomment-1259871885
4
+ if let Ok(val) = std::env::var("GIT_SEMVER") {
5
+ println!("Using version defined by 'GIT_SEMVER={}'", val);
6
+ println!("cargo:rustc-env=CARGO_PKG_VERSION={}", val);
7
+ }
8
+ println!("cargo:rerun-if-env-changed=GIT_SEMVER");
9
+ println!("cargo:rerun-if-changed=build.rs");
10
+}
0 commit comments