relib_interface/
lib.rs

1#[cfg(feature = "build")]
2pub mod host;
3#[cfg(feature = "build")]
4pub mod module;
5#[cfg(feature = "build")]
6mod shared;
7
8#[cfg(feature = "include")]
9#[macro_export]
10macro_rules! include_exports {
11  () => {
12    $crate::include_exports!(gen_exports);
13  };
14  ($mod_name:ident) => {
15    mod $mod_name {
16      include!(concat!(env!("OUT_DIR"), "/generated_module_exports.rs"));
17    }
18  };
19}
20
21#[cfg(feature = "include")]
22#[macro_export]
23macro_rules! include_imports {
24  () => {
25    $crate::include_imports!(gen_imports);
26  };
27  ($mod_name:ident) => {
28    mod $mod_name {
29      include!(concat!(env!("OUT_DIR"), "/generated_module_imports.rs"));
30    }
31  };
32}