//! Application metadata commands. //! //! Exposes static, app-level information to the frontend. The changelog is //! embedded at compile time via `include_str!` so the "What's New" dialog can //! surface release notes after an OTA update without shipping a separate //! resource file or reading from disk at runtime. use tracing::instrument; /// The project changelog, baked into the binary at build time. const CHANGELOG: &str = include_str!("../../../CHANGELOG.md"); /// Return the raw `CHANGELOG.md` contents. /// /// The frontend parses out the section for the freshly-installed version and /// renders it in the "What's New" dialog. Infallible — the changelog is part /// of the binary. #[tauri::command] #[instrument] pub async fn get_changelog() -> String { CHANGELOG.to_string() }