#heap #stack #limit #recursive #hit #manual

stacker

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

14 releases

Uses old Rust 2015

0.1.13 Jan 14, 2021
0.1.12 Sep 19, 2020
0.1.11 Aug 16, 2020
0.1.10 Jul 30, 2020
0.1.1 Jul 23, 2015
Download history 9633/week @ 2020-11-09 9856/week @ 2020-11-16 9957/week @ 2020-11-23 8568/week @ 2020-11-30 9275/week @ 2020-12-07 10318/week @ 2020-12-14 8669/week @ 2020-12-21 8684/week @ 2020-12-28 10063/week @ 2021-01-04 10755/week @ 2021-01-11 9568/week @ 2021-01-18 10103/week @ 2021-01-25 10501/week @ 2021-02-01 10919/week @ 2021-02-08 11390/week @ 2021-02-15 10458/week @ 2021-02-22

41,202 downloads per month
Used in 47 crates (5 directly)

MIT/Apache

93KB
2K SLoC

GNU Style Assembly 1K SLoC // 0.1% comments Rust 610 SLoC // 0.1% comments Assembly 139 SLoC // 0.2% comments C 4 SLoC

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

~195KB