Thanks to visit codestin.com
Credit goes to lib.rs

#recursion #algorithm #limit #fixed-point #stack-growth

stacker

A stack growth library useful when implementing deeply recursive algorithms that may accidentally blow the stack

23 releases

0.1.22 Oct 2, 2025
0.1.21 Apr 25, 2025
0.1.20 Mar 18, 2025
0.1.17 Aug 27, 2024
0.1.1 Jul 23, 2015

#15 in Algorithms

Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

2,590,718 downloads per month
Used in 1,597 crates (72 directly)

MIT/Apache

105KB
2K SLoC

Codestin Search App Codestin Search App Codestin Search App Codestin Search App

stacker

Build Status

Documentation

A stack-growth library for Rust. Enables annotating fixed points in programs where the stack may want to grow larger. Spills over to the heap if the stack has hit its limit.

This library is intended on helping implement recursive algorithms.

# Cargo.toml
[dependencies]
stacker = "0.1"

Platform Support

This library currently uses psm for its cross platform capabilities, with a notable exception of Windows, which uses an implementation based on Fibers. See the README for psm for the support table.

On all unsupported platforms this library is a noop. It should compile and run, but it won't actually grow the stack and code will continue to hit the guard pages typically in place.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0–12MB
~89K SLoC