Unverified Commit 2407a1c6 authored by Vasili Novikov's avatar Vasili Novikov
Browse files

Add build profile to version information

parent 56c2b3be
Pipeline #4757 passed with stage
in 30 minutes and 44 seconds
......@@ -34,7 +34,7 @@ test:
- touch src/main.rs && cargo clippy --all-targets --all-features -- -D warnings
- if grep --recursive '::{' src/; then exit -1; fi
# cardo audit disabled for 1 week, see https://rustsec.org/advisories/RUSTSEC-2020-0159
- test "$(date +%s)" -lt "$(date -d 2021-10-26 +%s)" || cargo audit
- test "$(date +%s)" -lt "$(date -d 2021-11-26 +%s)" || cargo audit
- cargo test
- ./tools/test_curl.sh
......
......@@ -35,7 +35,8 @@ use warp::http::status::StatusCode;
pub fn get_project_version() -> String {
serde_json::json!({
"cargo": std::env!("CARGO_PKG_VERSION"),
"git_describe": std::option_env!("GIT_DESCRIBE")
"git_describe": std::option_env!("GIT_DESCRIBE"),
"build_profile": std::option_env!("PROFILE"),
})
.to_string()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment