pub struct BuildInfo {
pub name: &'static str,
pub version: &'static str,
pub backend: &'static str,
pub git_sha: Option<&'static str>,
pub build_time: Option<&'static str>,
pub profile: &'static str,
pub target: Option<&'static str>,
}Expand description
Build / version metadata published by version at /version.
Populated once by crate::server::serve from compile-time
constants (CARGO_PKG_*) and optional build-time env vars
(DATAPRESS_GIT_SHA, DATAPRESS_BUILD_TIME), and stored in actix
app data. The handler just serialises it to JSON.
Fields§
§name: &'static strCrate name (e.g. "datapress-core").
version: &'static strCrate version from CARGO_PKG_VERSION (e.g. "0.1.17").
backend: &'static strHuman-readable backend label — "DuckDB" or "DataFusion".
git_sha: Option<&'static str>Git commit SHA the binary was built from. None when
DATAPRESS_GIT_SHA was not set at build time.
build_time: Option<&'static str>ISO-8601 build timestamp. None when DATAPRESS_BUILD_TIME
was not set at build time.
profile: &'static str"debug" or "release", derived from cfg!(debug_assertions).
target: Option<&'static str>Rust target triple the binary was built for (e.g.
"aarch64-apple-darwin"). None when DATAPRESS_TARGET was
not set at build time.