diff --git a/src/main.rs b/src/main.rs index 3c47f43..d4dc452 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,12 @@ use serde::Deserialize; mod mpd; +macro_rules! crate_version { + () => { + env!("CARGO_PKG_VERSION") + }; +} + #[derive(Template)] #[template(path = "index.html")] struct IndexTemplate; diff --git a/templates/index.html b/templates/index.html index a1d8a4f..54fd146 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,6 +3,8 @@