runtime_context/lib.rs
1//! Runtime context for storing heterogeneous values by type.
2//!
3//! This crate provides a lightweight type map with support for owned values and
4//! borrowed (immutable or mutable) references. It is built on top of
5//! [`better_any`](https://crates.io/crates/better_any) and uses an optimized
6//! `TypeId` hasher for fast lookups.
7
8mod context;
9mod data;
10mod hasher;
11
12/// Re-export public API.
13pub use better_any::*;
14
15/// Re-export the main `Context` type.
16pub use context::*;
17
18/// Re-export internal modules for users who need advanced features.
19pub use data::*;
20pub use hasher::*;