aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-09 19:04:17 +0000
committerFuwn <[email protected]>2022-03-09 19:04:17 +0000
commit5485a58ee4f8e2ef3db384ebaf31860e198d901f (patch)
tree096febe388721081a092f09582bdd9589c6b6cbd /src/lib.rs
parentfeat(index): git commit hash on index (diff)
downloadapi-worker-5485a58ee4f8e2ef3db384ebaf31860e198d901f.tar.xz
api-worker-5485a58ee4f8e2ef3db384ebaf31860e198d901f.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())
})