A dropping arena based on bumpalo.
```rust use rodeo::Rodeo;
let rodeo = Rodeo::new();
let refn = rodeo.alloc(42);
struct S; impl Drop for S { fn drop(&mut self) { println!("dropping S"); } } let _ref = rodeo.alloc(S);
drop(rodeo); ```
prints dropping S
bumpalo
(default)As a memory management library, this code uses unsafe
extensively. However, the code is tested and dynamically verified.
Some test scenarios are written with proptest.
Run the tests simply with:
shell
$ cargo test
Miri is an interpreter for MIR (an intermediate representation of Rust) that checks Rust code and in particular unsafe code against the experimental Stacked Borrows memory model.
As of miri 0.1.0 (c1a859b 2022-11-10)
, Rodeo's tests emits no error or warning when run with Miri.
shell
$ rustup +nightly component add miri # if needed
$ cargo +nightly miri test
Bump
but dropping)Rodeo is distributed under the terms of both the MIT license and the Apache License (Version 2.0). See LICENSE-MIT and LICENSE-APACHE.