Wow, I thought this mailing list died a long time ago. Try 
https://users.rust-lang.org/ or Stack Overflow for this type of
question, or just look for examples.
#ifdef is definitely not Rust. Your other example is fine.

On Mon, 2019-08-12 at 15:44 -0400, Matt Zand wrote:
> 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?
> 
> _______________________________________________Rust-dev mailing 
> listrust-...@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to