mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
Make alloc an optional default feature
This commit is contained in:
parent
469db77437
commit
bec0cc6055
|
@ -14,8 +14,9 @@ debug = true
|
||||||
lto = true
|
lto = true
|
||||||
debug = true
|
debug = true
|
||||||
|
|
||||||
|
[features]
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
default = ["alloc"]
|
||||||
|
alloc = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "1.2"
|
bitflags = "1.2"
|
||||||
|
|
|
@ -13,7 +13,10 @@
|
||||||
//! internal workings of the Game Boy Advance whilst still being high
|
//! internal workings of the Game Boy Advance whilst still being high
|
||||||
//! performance and memory efficient.
|
//! performance and memory efficient.
|
||||||
|
|
||||||
|
#[cfg(feature = "alloc")]
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
|
#[cfg(feature = "alloc")]
|
||||||
|
mod agb_alloc;
|
||||||
|
|
||||||
/// Implements everything relating to things that are displayed on screen.
|
/// Implements everything relating to things that are displayed on screen.
|
||||||
pub mod display;
|
pub mod display;
|
||||||
|
@ -34,8 +37,6 @@ pub mod mgba;
|
||||||
pub mod number;
|
pub mod number;
|
||||||
mod single;
|
mod single;
|
||||||
|
|
||||||
mod agb_alloc;
|
|
||||||
|
|
||||||
/// System BIOS calls / syscalls.
|
/// System BIOS calls / syscalls.
|
||||||
pub mod syscall;
|
pub mod syscall;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue