Skip to main content

lite_strtab/
lib.rs

1#![doc = include_str!(concat!("../", env!("CARGO_PKG_README")))]
2#![no_std]
3#![cfg_attr(feature = "nightly", feature(allocator_api))]
4#![forbid(unsafe_op_in_unsafe_fn)]
5#![warn(missing_docs)]
6
7extern crate alloc;
8#[cfg(feature = "std")]
9extern crate std;
10
11mod allocator;
12
13/// Builder for creating immutable pools.
14pub mod builder;
15/// Error types.
16pub mod error;
17/// Immutable pool storage and iteration.
18pub mod table;
19/// Data and type definitions.
20pub mod types;
21
22pub use allocator::{Allocator, Global};
23pub use builder::{StringPoolBuilder, StringTableBuilder};
24pub use error::{Error, Result};
25pub use table::{StringPool, StringPoolIter, StringTable, StringTableIter};
26pub use types::{Offset, StringId, StringIndex};