add the generated.rs top file which routes to specific configs with feature flags

This commit is contained in:
bunnie 2022-09-27 16:32:40 +08:00
parent 0cfc09f523
commit 4f7f5855ec

18
utralib/src/generated.rs Normal file
View file

@ -0,0 +1,18 @@
// Feature flags are checked inside build.rs for sanity, so we
// can use them here assuming all targets are mutually exclusive.
#[cfg(feature="precursor-c809403")]
mod precursor_c809403;
#[cfg(feature="precursor-c809403")]
pub use precursor_c809403::*;
#[cfg(feature="precursor-c809403-perflib")]
mod precursor_perf_c809403;
#[cfg(feature="precursor-c809403-perflib")]
pub use precursor_perf_c809403::*;
// Hosted mode includes nothing, as it relies on the abstract host
// architecture for I/O; so this file is empty when the "hosted"
// configuration is selected and there are no corresponding "hosted"
// mode feature flags.