Skip to main content

sapient_rs/
lib.rs

1#[cfg(not(any(feature = "v1_0", feature = "v2_0")))]
2compile_error!("Enable at least one schema feature (`v2_0` is enabled by default).");
3
4pub mod sapient_msg {
5    include!(concat!(
6        env!("CARGO_MANIFEST_DIR"),
7        "/src/generated/sapient_msg.rs"
8    ));
9
10    #[cfg(feature = "v1_0")]
11    pub mod bsi_flex_335_v1_0 {
12        include!(concat!(
13            env!("CARGO_MANIFEST_DIR"),
14            "/src/generated/sapient_msg.bsi_flex_335_v1_0.rs"
15        ));
16    }
17
18    #[cfg(feature = "v2_0")]
19    pub mod bsi_flex_335_v2_0 {
20        include!(concat!(
21            env!("CARGO_MANIFEST_DIR"),
22            "/src/generated/sapient_msg.bsi_flex_335_v2_0.rs"
23        ));
24    }
25}
26
27#[cfg(feature = "v1_0")]
28pub use sapient_msg::bsi_flex_335_v1_0;
29#[cfg(feature = "v2_0")]
30pub use sapient_msg::bsi_flex_335_v2_0;
31
32pub mod utils;