roowho2_lib/version.rs
1use clap::crate_version;
2
3const fn long_version() -> &'static str {
4 // macro_rules! feature {
5 // ($title:expr, $flag:expr) => {
6 // if cfg!(feature = $flag) {
7 // concat!($title, ": enabled")
8 // } else {
9 // concat!($title, ": disabled")
10 // }
11 // };
12 // }
13
14 const_format::concatcp!(
15 crate_version!(),
16 "\n",
17 "build profile: ",
18 env!("BUILD_PROFILE"),
19 "\n",
20 "commit: ",
21 env!("GIT_COMMIT"),
22 "\n\n",
23 // "[features]\n",
24 // "\n",
25 // "\n",
26 "[dependencies]\n",
27 const_format::str_replace!(env!("DEPENDENCY_LIST"), ";", "\n")
28 )
29}
30
31pub const LONG_VERSION: &str = long_version();