These are chat archives for kbknapp/clap-rs

Jun 2018
Sam Bateman
Jun 19 2018 02:39
Hey guys just a quick question: When I use the macro
features = ["yaml"]
pub fn main() { ...
the compiler complains I don't have a main function
I am using rust nightly
Further when I use the stable compiler, the same code just complains that load_yaml isn't in this scope
Sam Bateman
Jun 19 2018 02:44
sorry meant
#[feature = "yaml"] 
pub fn main() {
Denis Lisov
Jun 19 2018 08:00
@Cyberdr8gon Did you mean #[cfg(feature = "yaml")]?