[package]
edition = "2024"
name = "char_str"
version = "0.0.2"
authors = [
"Charlie Marsh <charlie.r.marsh@gmail.com>",
"ryota2357",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Compact owned string types forked from lean_string for Ruff and ty."
readme = "README.md"
keywords = [
"string",
"sso",
"cow",
]
categories = [
"data-structures",
"no-std",
]
license = "MIT"
repository = "https://github.com/astral-sh/char_str"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
get-size = [
"std",
"dep:get-size2",
]
salsa = [
"std",
"dep:salsa",
]
serde = ["dep:serde_core"]
std = []
[lib]
name = "char_str"
path = "src/lib.rs"
[[test]]
name = "alloc_string"
path = "tests/alloc_string.rs"
[[test]]
name = "arbitrary"
path = "tests/arbitrary.rs"
[[test]]
name = "char_str"
path = "tests/char_str.rs"
[[test]]
name = "const"
path = "tests/const.rs"
[[test]]
name = "freeze_oom"
path = "tests/freeze_oom.rs"
[[test]]
name = "get_size"
path = "tests/get_size.rs"
[[test]]
name = "handmade"
path = "tests/handmade.rs"
[[test]]
name = "loom"
path = "tests/loom.rs"
[[test]]
name = "property"
path = "tests/property.rs"
[[test]]
name = "race_condition"
path = "tests/race_condition.rs"
[[test]]
name = "salsa"
path = "tests/salsa.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[[bench]]
name = "collection"
path = "benches/collection.rs"
harness = false
[[bench]]
name = "comparison"
path = "benches/comparison.rs"
harness = false
[[bench]]
name = "exact_construction"
path = "benches/exact_construction.rs"
harness = false
[[bench]]
name = "formatting"
path = "benches/formatting.rs"
harness = false
[[bench]]
name = "heap_layout"
path = "benches/heap_layout.rs"
harness = false
[[bench]]
name = "mutation"
path = "benches/mutation.rs"
harness = false
[dependencies.arbitrary]
version = "1"
optional = true
default-features = false
[dependencies.castaway]
version = "0.2.4"
features = ["alloc"]
default-features = false
[dependencies.get-size2]
version = "0.10.0"
optional = true
[dependencies.itoa]
version = "1.0"
[dependencies.ryu]
version = "1.0"
[dependencies.salsa]
version = "0.27.2"
optional = true
default-features = false
[dependencies.serde_core]
version = "1.0"
optional = true
default-features = false
[dev-dependencies.criterion]
version = "=5.0.1"
features = ["cargo_bench_support"]
default-features = false
package = "codspeed-criterion-compat"
[dev-dependencies.paste]
version = "1.0.15"
[dev-dependencies.proptest]
version = "1.11.0"
features = ["attr-macro"]
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0"
[target."cfg(loom)".dependencies.loom]
version = "0.7.2"
optional = true
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]