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