stack_string/
lib.rs

1#![allow(clippy::too_many_lines)]
2#![allow(clippy::module_name_repetitions)]
3#![allow(clippy::similar_names)]
4#![allow(clippy::used_underscore_binding)]
5#![allow(clippy::unsafe_derive_deserialize)]
6
7pub mod small_string;
8pub mod stack_cow;
9pub mod stack_string;
10
11#[cfg(feature = "smart_string")]
12pub mod smart_string;
13
14pub const MAX_INLINE: usize = std::mem::size_of::<String>();
15
16pub use crate::{small_string::SmallString, stack_cow::StackCow, stack_string::StackString};
17
18#[cfg(feature = "smart_string")]
19pub use crate::smart_string::SmartString;