Increase default stack size to 2MB with opt-out available
@ -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"
@ -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
///