guard example_generated with opt-out feature

This commit is contained in:
Joonas Koivunen 2017-04-04 13:57:51 +03:00
parent c3b95543d1
commit 5a14a7df49
2 changed files with 3 additions and 0 deletions

View File

@ -18,4 +18,6 @@ A macro to generate structures which behave like bitflags.
"""
[features]
default = ["example_generated"]
unstable_testing = []
example_generated = []

View File

@ -564,6 +564,7 @@ macro_rules! __impl_bitflags {
};
}
#[cfg(feature = "example_generated")]
pub mod example_generated;
#[cfg(test)]