3 ms·
> AFAIK, stable unsafe Rust doesn’t even has malloc & free functions. It's stable to import the C malloc/free, and it's relatively easy to use Vec as an alloca
by dbaupp 9y ago
> AFAIK, stable unsafe Rust doesn’t even has malloc & free functions.
It's stable to import the C malloc/free, and it's relatively easy to use Vec as an allocator: https://www.reddit.com/r/rust/comments/7yhhq6/borrow_cycles_in_rust_arenas_vs_dropchecking/dukb3w6/ https://www.reddit.com/r/rust/comments/7yhhq6/borrow_cycles_...