Memory safety doesn't help too much here, but "RAII" (automatically dropping values when they go out of scope) does.
Re:Bun is being ported from Zig to Rust
by satvikpendem on Wednesday May 06, 2026 @02:17AM
(#48032888)
Generally it's automatically dropped unless you go out of your way to use the leak function, which most software doesn't do.
e.g. `Box::leak(Box::new( ... ))`