diff --git a/build.rs b/build.rs index ab72393..e68bf9c 100644 --- a/build.rs +++ b/build.rs @@ -10,5 +10,9 @@ fn main() -> Result<()> { .add_instructions(&rustc)? .emit()?; embuild::espidf::sysenv::output(); + println!( + "cargo:rustc-env=VERSION={}", + std::env::var("TD_FREE_VERSION").unwrap_or("UNKNOWN".to_string()) + ); Ok(()) } diff --git a/src/index.html b/src/index.html index 380c3a8..62e33c1 100644 --- a/src/index.html +++ b/src/index.html @@ -83,8 +83,9 @@
Verion {{VERSION}}