These are chat archives for kbknapp/clap-rs

19th
Jun 2018
Sam Bateman
@Cyberdr8gon
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
@Cyberdr8gon
Jun 19 2018 02:44
sorry meant
#[feature = "yaml"] 
pub fn main() {
Denis Lisov
@tanriol
Jun 19 2018 08:00
@Cyberdr8gon Did you mean #[cfg(feature = "yaml")]?