char_str 0.0.1

Compact owned string types forked from lean_string for Ruff and ty.
Documentation

char_str

Crates.io Documentation

Compact owned strings with mutable and immutable variants.

char_str is a fork of lean_string with customizations for use in Ruff and ty.

use char_str::{CharStr, format_char_str};

let module = "mod";
let name = format_char_str!("pkg.{module}");
assert_eq!(name, "pkg.mod");
assert!(name.len() <= CharStr::INLINE_CAPACITY);

License

This crate is licensed under the MIT license.