Skip to main content

DEFAULT_STACK_SIZE

Constant DEFAULT_STACK_SIZE 

Source
pub const DEFAULT_STACK_SIZE: usize = 4096;
Expand description

Default per-task stack size when the caller does not specify one.

4 KiB is a sane floor for a Cortex-M task and plenty for a host fiber. Override globally with crate::SchedulerConfig::stack_size or per task with spawn_with_stack.