devela/_info/
examples.rs

1// devela::_info::examples
2//
3//!
4//! These examples generate example structures for documentation purposes.
5//
6// NOTE: rustdoc doesn't detect changes in the examples, but only in the library.
7// So it's necessary to modify the library in order to rebuild the examples docs.
8
9#![allow(unused)]
10
11/* in-crate integrated examples */
12
13#[cfg(all(feature = "bit", feature = "_bit_u8"))]
14#[path = "../../examples/code/enumset.rs"]
15pub mod enumset;
16#[path = "../../examples/code/enumint.rs"]
17pub mod enumint;
18
19#[cfg(feature = "_bit_u8")]
20#[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "_bit_u8")))]
21#[path = "../../examples/data/bitfield.rs"]
22pub mod bitfield;
23#[path = "../../examples/data/id_seq.rs"]
24pub mod id_seq;
25
26#[path = "../../examples/num/niche.rs"]
27pub mod niche;
28
29/* out-crate standalone examples */
30
31// #[path = "examples/separate_crate"]
32// pub mod example_separate_crate {
33//     // The library.
34//     #[path = "src/lib.rs"]
35//     pub mod lib;
36//
37//     // A selected example.
38//     // #[cfg(feature = "std")] // any needed features
39//     #[path = "examples/hello_world.rs"]
40//     pub mod example_hello_world;
41// }