mirror of
https://gitee.com/openharmony/third_party_rust_bitflags
synced 2024-11-27 01:11:37 +00:00
guard example_generated with opt-out feature
This commit is contained in:
parent
c3b95543d1
commit
5a14a7df49
@ -18,4 +18,6 @@ A macro to generate structures which behave like bitflags.
|
||||
"""
|
||||
|
||||
[features]
|
||||
default = ["example_generated"]
|
||||
unstable_testing = []
|
||||
example_generated = []
|
||||
|
@ -564,6 +564,7 @@ macro_rules! __impl_bitflags {
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(feature = "example_generated")]
|
||||
pub mod example_generated;
|
||||
|
||||
#[cfg(test)]
|
||||
|
Loading…
Reference in New Issue
Block a user