[package] name = "compact_str" description = "A memory efficient string type that transparently stores strings on the stack, when possible" version = "0.10.0" authors = ["Parker Timmerman "] edition = "2021" license = "MIT" rust-version = "1.71" homepage = "https://github.com/ParkMyCar/compact_str" repository = "https://github.com/ParkMyCar/compact_str" readme = "../README.md" keywords = ["string", "compact", "small", "memory", "mutable"] categories = ["encoding", "parsing", "memory-management", "text-processing"] [features] default = ["std"] std = [] arbitrary = ["dep:arbitrary"] bevy-reflect = ["dep:bevy_reflect", "serde"] borsh = ["dep:borsh"] bytes = ["dep:bytes"] defmt = ["dep:defmt"] diesel = ["dep:diesel"] garde = ["dep:garde"] markup = ["dep:markup"] proptest = ["dep:proptest"] pyo3 = ["dep:pyo3"] quickcheck = ["dep:quickcheck"] rkyv = ["dep:rkyv"] schemars = ["dep:schemars"] serde = ["dep:serde"] smallvec = ["dep:smallvec"] sqlx = ["dep:sqlx", "std"] sqlx-mysql = ["sqlx", "sqlx/mysql"] sqlx-postgres = ["sqlx", "sqlx/postgres"] sqlx-sqlite = ["sqlx", "sqlx/sqlite"] utoipa = ["dep:utoipa", "std"] valuable = ["dep:valuable"] zeroize = ["dep:zeroize"] [dependencies] arbitrary = { version = "1", optional = true, default-features = false } bevy_reflect = { version = "0.19", optional = true } borsh = { version = "1", optional = true } bytes = { version = "1", optional = true } diesel = { version = "2", optional = true, default-features = false } garde = { version = "0.23", optional = true, default-features = false, features = ["derive"] } markup = { version = "0.16", optional = true, default-features = false } proptest = { version = "1", optional = true, default-features = false, features = [ "std", ] } pyo3 = { version = "0.29", optional = true, default-features = false } quickcheck = { version = "1", optional = true, default-features = false } rkyv = { version = "0.8", optional = true, default-features = false } schemars = { version = "1", optional = true, default-features = false } serde = { version = "1", optional = true, default-features = false, features = [ "derive", "alloc", ] } smallvec = { version = "1", optional = true, features = ["union"] } sqlx = { version = "0.9", optional = true, default-features = false } utoipa = { version = "5", optional = true } valuable = { version = "0.1.1", optional = true, default-features = false } zeroize = { version = "1", optional = true, default-features = false } castaway = { version = "0.2.3", default-features = false, features = ["alloc"] } cfg-if = "1" itoa = "1" zmij = "1" static_assertions = "1" # `defmt` only works in ELF binaries. [target.'cfg(not(target_os = "windows"))'.dependencies] defmt = { version = "1", optional = true } [dev-dependencies] cfg-if = "1" proptest = { version = "1", default-features = false, features = ["std"] } quickcheck = { version = "1", default-features = false } quickcheck_macros = "1" rayon = "1" rkyv = { version = "0.8", default-features = false, features = ["alloc", "bytecheck"] } serde = { version = "1", features = ["derive"] } serde_json = "1" test-case = "3" test-strategy = "0.3" # Enables `zeroize/alloc` for the `String` baseline in the zeroize parity tests, without widening the public feature. zeroize = { version = "1", default-features = false, features = ["alloc"] } # zmij v1.0.22 is broken on Miri, so we pin our tests to a working version. zmij = "=1.0.21" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(kani)'] }