reliakit_primitives/lib.rs
1//! Type-safe primitives for constrained values.
2//!
3//! `reliakit-primitives` provides small owned wrapper types for values that
4//! should satisfy common constraints before they move through an application or
5//! library boundary.
6//!
7//! The crate has no dependencies and forbids unsafe code.
8
9#![cfg_attr(not(feature = "std"), no_std)]
10#![forbid(unsafe_code)]
11
12extern crate alloc;
13
14pub mod bounded;
15pub mod error;
16pub mod non_empty;
17pub mod numeric;
18
19pub use bounded::BoundedStr;
20pub use error::{PrimitiveError, PrimitiveResult};
21pub use non_empty::NonEmptyStr;
22pub use numeric::{ByteSize, Percent, Port};