heap-drop
Heap drop is a Rust crate designed to solve the problem where deeply nested structures cause a stack overflow when dropped using the normal method generated by the compiler.
The crate exposes a function that iteratively drops the children of the parsed value using a heap-allocated queue, as well as a derive macro for implementing the required plumbing for this functionality!
Example
use ;
;
let v = Node;
heap_drop; // call before value goes out of scope