summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2026-04-30 10:10:46 +0200
committerStefan Kreutz <mail@skreutz.com>2026-04-30 10:10:46 +0200
commit46a3d2ba70decd1931e13c190bfa49217e57718d (patch)
tree49bc767c52d0cb4cf8443782cae1cc641ef59343 /build.rs
parent47421e41def84ab92a52906f01266b1044fbfe29 (diff)
downloadtemp-postgres-46a3d2ba70decd1931e13c190bfa49217e57718d.tar.gz
Rewrite in async Rust
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/build.rs b/build.rs
new file mode 100644
index 0000000..8fae21e
--- /dev/null
+++ b/build.rs
@@ -0,0 +1,16 @@
+//! Build script.
+
+fn main() -> Result<(), Box<dyn std::error::Error>> {
+ // Embed build information.
+ vergen_gitcl::Emitter::new()
+ .idempotent()
+ .add_instructions(
+ &vergen_gitcl::GitclBuilder::default()
+ .sha(true) // Short
+ .dirty(false) // Ignore untracked files
+ .build()?,
+ )?
+ .emit()?;
+
+ Ok(())
+}
Generated by cgit. See skreutz.com for my tech blog and contact information.