devela/build/generate/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// devela build::generate
//
//! Code generation during the build process.
//

#[cfg(feature = "_tuple")]
#[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "_tuple")))]
mod tuple;
#[cfg(feature = "_unroll")]
#[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "_unroll")))]
mod unroll;

pub(crate) fn main() -> Result<(), std::io::Error> {
    #[cfg(feature = "__dbg")]
    super::utils::println_heading("Code generation:");

    #[cfg(feature = "_tuple")]
    tuple::generate()?;
    #[cfg(feature = "_unroll")]
    unroll::generate()?;

    Ok(())
}