# `::cfg_eval`
[`#[cfg_eval]`](
https://doc.rust-lang.org/1.70.0/core/prelude/v1/attr.cfg_eval.html
) in stable Rust.
[](
https://github.com/danielhenrymantilla/cfg_eval.rs)
[](
https://crates.io/crates/cfg_eval)
[](
https://docs.rs/cfg_eval)
[](https://gist.github.com/danielhenrymantilla/9b59de4db8e5f2467ed008b3c450527b)
[](
https://github.com/rust-secure-code/safety-dance/)
[](
https://github.com/danielhenrymantilla/cfg_eval.rs/blob/master/LICENSE-ZLIB)
[](
https://github.com/danielhenrymantilla/cfg_eval.rs/actions)
## Example
```rust
use ::macro_rules_attribute::apply;
#[macro_use]
extern crate cfg_eval;
fn main()
{
let output_without_cfg_eval = {
#[apply(stringify!)]
enum Foo {
Bar,
#[cfg(FALSE)]
NonExisting,
}
};
// This is usually not great.
assert!(output_without_cfg_eval.contains("NonExisting"));
let output_with_cfg_eval = {
#[cfg_eval]
#[apply(stringify!)]
enum Foo {
Bar,
#[cfg(FALSE)]
NonExisting,
}
};
assert_eq!(output_with_cfg_eval, stringify! {
enum Foo {
Bar,
}
});
}
```