diff --git a/Cargo.toml b/Cargo.toml index 27db353..59f4a13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,8 @@ edition = "2021" license = "Zlib OR Apache-2.0 OR MIT" [features] -default = ["track_caller", "on_gba"] +default = ["track_caller", "on_gba", "asm_runtime"] +asm_runtime = [] track_caller = [] on_gba = [] fixed = ["dep:fixed"] diff --git a/src/lib.rs b/src/lib.rs index e79f60c..3a0684b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -101,7 +101,7 @@ mod macros; #[cfg(test)] mod test_harness; -#[cfg(feature = "on_gba")] +#[cfg(feature = "asm_runtime")] mod asm_runtime; #[cfg(feature = "on_gba")] pub mod bios; diff --git a/src/prelude.rs b/src/prelude.rs index a2d9a6a..12402e7 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -2,10 +2,12 @@ #[cfg(feature = "on_gba")] pub use crate::{ - asm_runtime::*, bios::*, dma::*, gba_cell::*, mgba::*, mmio::*, - RUST_IRQ_HANDLER, + bios::*, dma::*, gba_cell::*, mgba::*, mmio::*, RUST_IRQ_HANDLER, }; +#[cfg(feature = "asm_runtime")] +pub use crate::asm_runtime::*; + pub use crate::{ builtin_art::*, fixed::*,