char_str 0.0.2

Compact owned string types forked from lean_string for Ruff and ty.
Documentation
[package]
name = "char_str"
description = "Compact owned string types forked from lean_string for Ruff and ty."
version = "0.0.2"
edition = "2024"
authors = ["Charlie Marsh <charlie.r.marsh@gmail.com>", "ryota2357"]
repository = "https://github.com/astral-sh/char_str"
readme = "README.md"
license = "MIT"
keywords = ["string", "sso", "cow"]
categories = ["data-structures", "no-std"]

[features]
default = ["std"]
std = []
get-size = ["std", "dep:get-size2"]
salsa = ["std", "dep:salsa"]
serde = ["dep:serde_core"]

[dependencies]
itoa = "1.0"
ryu = "1.0"
castaway = { version = "0.2.4", default-features = false, features = ["alloc"] }
arbitrary = { version = "1", optional = true, default-features = false }
get-size2 = { version = "0.10.0", optional = true }
salsa = { version = "0.27.2", optional = true, default-features = false }
serde_core = { version = "1.0", optional = true, default-features = false }

[dev-dependencies]
criterion = { package = "codspeed-criterion-compat", version = "=5.0.1", default-features = false, features = ["cargo_bench_support"] }
paste = "1.0.15"
proptest = { version = "1.11.0", features = ["attr-macro"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

[[bench]]
name = "collection"
harness = false

[[bench]]
name = "mutation"
harness = false

[[bench]]
name = "heap_layout"
harness = false

[[bench]]
name = "exact_construction"
harness = false

[[bench]]
name = "comparison"
harness = false

[[bench]]
name = "formatting"
harness = false

[target.'cfg(loom)']
dependencies.loom = { version = "0.7.2", optional = true }

# https://github.com/tokio-rs/loom/issues/352
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]