Registry / utility / stacker

stacker

JSON →
library0.1.24rscratesunverified

A stack growth library for safely implementing deeply recursive algorithms without overflowing the stack.

# Cargo.toml [dependencies] stacker = "0.1.24"
INSTALL
IMPORT
SIG · STACKER
S
stacker
utilityrustv0.1.24
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

maybe_grow
use stacker::maybe_grow;

Demonstrates safe deep recursion by growing the stack as needed.

use stacker::maybe_grow; fn deep_recursion(n: u32) -> u32 { maybe_grow(32 * 1024, 1024 * 1024, || { if n == 0 { 0 } else { deep_recursion(n - 1) } }) } fn main() { println!("{}", deep_recursion(100_000)); }
Debug
Known issues
gotchaRequires platform-specific assembly or OS support; may not work on all targets (e.g., WASM).
fix
Check the crate's documentation for supported platforms and consider fallback strategies.
affects: >=0.1.0
Upgrade
Version history
0.1.24latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
stacker — cargo add stacker · libregistry