Skip to content

Commit 28401c8

Browse files
authored
Optionally include global ASM runtime (to allow using gba-rs as a lib) (#217)
1 parent 6a6fdc0 commit 28401c8

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ edition = "2021"
77
license = "Zlib OR Apache-2.0 OR MIT"
88

99
[features]
10-
default = ["track_caller", "on_gba"]
10+
default = ["track_caller", "on_gba", "asm_runtime"]
11+
asm_runtime = []
1112
track_caller = []
1213
on_gba = []
1314
fixed = ["dep:fixed"]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ mod macros;
101101
#[cfg(test)]
102102
mod test_harness;
103103

104-
#[cfg(feature = "on_gba")]
104+
#[cfg(feature = "asm_runtime")]
105105
mod asm_runtime;
106106
#[cfg(feature = "on_gba")]
107107
pub mod bios;

src/prelude.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
33
#[cfg(feature = "on_gba")]
44
pub use crate::{
5-
asm_runtime::*, bios::*, dma::*, gba_cell::*, mgba::*, mmio::*,
6-
RUST_IRQ_HANDLER,
5+
bios::*, dma::*, gba_cell::*, mgba::*, mmio::*, RUST_IRQ_HANDLER,
76
};
87

8+
#[cfg(feature = "asm_runtime")]
9+
pub use crate::asm_runtime::*;
10+
911
pub use crate::{
1012
builtin_art::*,
1113
fixed::*,

0 commit comments

Comments
 (0)