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

stacker

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

16 releases

Uses old Rust 2015

0.1.15 Jul 23, 2022
0.1.14 May 23, 2021
0.1.13 Jan 14, 2021
0.1.12 Sep 19, 2020
0.1.1 Jul 23, 2015
Download history 12786/week @ 2022-04-27 12674/week @ 2022-05-04 12950/week @ 2022-05-11 13320/week @ 2022-05-18 12261/week @ 2022-05-25 12755/week @ 2022-06-01 12151/week @ 2022-06-08 11585/week @ 2022-06-15 14111/week @ 2022-06-22 13617/week @ 2022-06-29 14843/week @ 2022-07-06 13825/week @ 2022-07-13 15320/week @ 2022-07-20 13530/week @ 2022-07-27 14405/week @ 2022-08-03 12809/week @ 2022-08-10

58,436 downloads per month
Used in 63 crates (11 directly)

MIT/Apache

95KB
2K SLoC

GNU Style Assembly 1K SLoC // 0.1% comments Rust 598 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

~205KB