1 2 3 4 5 6 7 8 9 10 11
const VERSION: &'static str = env!("CARGO_PKG_VERSION"); #[allow(dead_code)] static INIT: &str = init(); #[allow(dead_code)] const fn init() -> &'static str { register(); return VERSION; } const fn register() {}