pub fn get_feature_flags() -> Vec<&'static str> {
[
if cfg!(feature = "tui") { "tui" } else { "!tui" },
if cfg!(feature = "concurrent") {
"concurrent"
} else {
"!concurrent"
},
if cfg!(target_os = "windows") {
"windows"
} else {
"!windows"
},
if cfg!(feature = "equivalent") {
"equivalent"
} else {
"!equivalent"
},
]
.to_vec()
}
pub fn get_feature_flags_json() -> String {
let flags = get_feature_flags();
format!(
"[{}]",
flags
.iter()
.map(|flag| format!("\"{}\"", flag))
.collect::<Vec<_>>()
.join(", ")
)
}