Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
17 lines
803 B
Diff
17 lines
803 B
Diff
diff --git a/aw-server/src/endpoints/mod.rs b/aw-server/src/endpoints/mod.rs
|
|
index a080d2a..0411d1e 100644
|
|
--- a/aw-server/src/endpoints/mod.rs
|
|
+++ b/aw-server/src/endpoints/mod.rs
|
|
@@ -76,11 +76,10 @@ async fn root_favicon(state: &State<ServerState>) -> Option<NamedFile> {
|
|
fn server_info(config: &State<AWConfig>, state: &State<ServerState>) -> Json<Info> {
|
|
#[allow(clippy::or_fun_call)]
|
|
let hostname = gethostname().into_string().unwrap_or("unknown".to_string());
|
|
- const VERSION: Option<&'static str> = option_env!("CARGO_PKG_VERSION");
|
|
|
|
Json(Info {
|
|
hostname,
|
|
- version: format!("v{} (rust)", VERSION.unwrap_or("(unknown)")),
|
|
+ version: String::from("@version@ (rust)"),
|
|
testing: config.testing,
|
|
device_id: state.device_id.clone(),
|
|
})
|