I am working on conditional compiling in rust
#[cfg(feature = "foo")]
I wonder what is right way to call conditional statement:
#ifdef ENABLE_FOO
fn ... {
}
#endif
or
#[cfg(feature = "foo")]
fn ... {
}
Also, are there situation where above conditions may not work?
--
Cheers,
Matt Zand
Cell: 202-420-9192
Work: 240-200-6131
High School Technology Services <https://myhsts.org/>
DC Web Makers <https://dcwebmakers.com/>
Coding Bootcamps <https://coding-bootcamps.com/>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev