aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-09 19:04:17 -0800
committerFuwn <[email protected]>2022-03-09 19:04:17 -0800
commit3c4a278db3e5b9696269caefad2bfaa79578704c (patch)
tree096febe388721081a092f09582bdd9589c6b6cbd /src/lib.rs
parentfeat(index): git commit hash on index (diff)
downloadapi-worker-3c4a278db3e5b9696269caefad2bfaa79578704c.tar.xz
api-worker-3c4a278db3e5b9696269caefad2bfaa79578704c.zip
refactor: use vergen for build variables
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 229472a..e5661dc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -62,7 +62,7 @@ pub async fn main(
.get("/v2/version", |_, _| {
Response::from_json(&serde_json::json!({
"crate_version": env!("CARGO_PKG_VERSION"),
- "git_commit_hash": env!("GIT_COMMIT_HASH"),
+ "git_commit_hash": env!("VERGEN_GIT_SHA"),
}))?
.with_cors(&utils::cors())
})