* Move version! from core to clap-utils * Completely move version! from core:: to clap_utils:: * rustfmt * Do remaining transition after rebase
22 lines
536 B
Rust
22 lines
536 B
Rust
#[macro_export]
|
|
macro_rules! version {
|
|
() => {
|
|
&*format!(
|
|
"{}{}",
|
|
env!("CARGO_PKG_VERSION"),
|
|
if option_env!("CI_TAG").is_none() {
|
|
format!(
|
|
" [channel={} commit={}]",
|
|
option_env!("CHANNEL").unwrap_or("unknown"),
|
|
option_env!("CI_COMMIT").unwrap_or("unknown"),
|
|
)
|
|
} else {
|
|
"".to_string()
|
|
},
|
|
)
|
|
};
|
|
}
|
|
|
|
pub mod input_parsers;
|
|
pub mod input_validators;
|