Rodeo

Rust Docs Rust Build Status Rust Nightly Build Status

A dropping untyped arena based on bumpalo:

Example

```rust use rodeo::Rodeo;

struct S; impl Drop for S { fn drop(&mut self) { println!("dropping S"); } }

{ let rodeo = Rodeo::new(); let n = rodeo.alloc(42); let r = rodeo.alloc(S); } ```

prints dropping S

Features and #[no_std] Support

You have to opt-out of bumpalo and std with default-features = false.

Safety

As a memory management library, this code uses unsafe extensively. However, the code is tested and dynamically verified with Miri.

Verification Strategy

Tests

Run the tests simply with:

shell $ cargo test

Miri

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 show no error or warning when run with Miri.

shell $ rustup +nightly component add miri # if needed $ cargo +nightly miri test $ LEAK=1 cargo +nightly miri test # should leak two buffers

To-Do

License

Rodeo is distributed under the terms of both the MIT license and the Apache License (Version 2.0). See LICENSE-MIT and LICENSE-APACHE.