From 4f7f5855eca2d3ee76332188305475ce4e487d20 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 27 Sep 2022 16:32:40 +0800 Subject: [PATCH] add the generated.rs top file which routes to specific configs with feature flags --- utralib/src/generated.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 utralib/src/generated.rs diff --git a/utralib/src/generated.rs b/utralib/src/generated.rs new file mode 100644 index 000000000..8ca58dcfb --- /dev/null +++ b/utralib/src/generated.rs @@ -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. \ No newline at end of file