Skip to main content

bumparaw_collections/
lib.rs

1//! Collections backed by [`bumpalo`] and [`serde_json::value::RawValue`].
2//!
3//! That combination allows to manipulate shared references while doing minimal and gradual JSON parsing.
4
5#![warn(missing_docs)]
6
7/// Contains [`allocator_api2::alloc::Allocator`] implementations for [`bumpalo`] objects.
8pub mod alloc;
9/// Contains [`crate::bbbul::Bbbul`] and [`crate::bbbul::FrozenBbbul`] types.
10pub mod bbbul;
11/// Contains advanced type for [`bumpalo`]-enabled deserialization.
12pub mod de;
13/// Contains a simple `str` interner
14pub mod interner;
15/// Contains [`crate::map::RawMap`], [`crate::map::FrozenMap`] and associated types.
16pub mod map;
17/// Parses [`serde_json::value::RawValue`] in bumpalo-backed types.
18pub mod value;
19/// Contains [`crate::vec::RawVec`] and associated types.
20pub mod vec;
21
22pub use bbbul::{Bbbul, FrozenBbbul};
23pub use map::RawMap;
24pub use value::Value;
25pub use vec::RawVec;
26
27#[cfg(test)]
28mod test;