diff --git a/ctru-rs/Cargo.toml b/ctru-rs/Cargo.toml index 148a76a..1016198 100644 --- a/ctru-rs/Cargo.toml +++ b/ctru-rs/Cargo.toml @@ -32,8 +32,9 @@ tokio = { version = "1.16", features = ["rt", "time", "sync", "macros"] } cfg-if = "1.0.0" [features] -default = ["romfs"] +default = ["romfs", "big-stack"] romfs = [] +big-stack = [] [package.metadata.cargo-3ds] romfs_dir = "examples/romfs" diff --git a/ctru-rs/src/lib.rs b/ctru-rs/src/lib.rs index 810c5df..721996b 100644 --- a/ctru-rs/src/lib.rs +++ b/ctru-rs/src/lib.rs @@ -10,6 +10,10 @@ extern "C" fn services_deinit() { } } +#[no_mangle] +#[cfg(feature = "big-stack")] +static __stacksize__: usize = 2 * 1024 * 1024; // 2MB + /// Call this somewhere to force Rust to link some required crates /// This is also a setup for some crate integration only available at runtime ///