Get the latest tech news
StackSafe: Taming Recursion in Rust Without Stack Overflow
We develop fast Rust crates and release them fast.
A sufficiently deep structure will cause your program to crash with stack overflow, and there’s no clean way to predict or handle this in standard Rust. What’s more, it includes an important safety mechanism: in debug builds, it checks whether the current function is properly annotated with#[stacksafe] whenever you access the wrapped value. This debug-time check helps you identify all potential stack overflow locations during development, rather than discovering them in production when they cause crashes.
Or read this on Hacker News