Conditional doc

This commit is contained in:
Markus Westerlind 2018-10-21 13:21:04 +02:00
parent e6b6a07fd6
commit 3e0624c90a

View File

@ -0,0 +1,9 @@
LALRPOP support conditional compilation of public non-terminal declarations via `#[cfg(feature = "FEATUERE")]` attributes.
If run in a build script LALRPOP will automatically pickup the features from `cargo` and use those. Alternatively an explicit set of features can be set using the `Configuration` type.
```rust
#[cfg(feature = "FEATURE")]
pub MyRule : () = {
...
};
```