[package]
name = "compact_str"
description = "A memory efficient string type that transparently stores strings on the stack, when possible"
version = "0.8.0"
authors = ["Parker Timmerman <parker@parkertimmerman.com>"]
edition = "2021"
license = "MIT"
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"]
borsh = ["dep:borsh"]
bytes = ["dep:bytes"]
diesel = ["dep:diesel"]
markup = ["dep:markup"]
proptest = ["dep:proptest"]
quickcheck = ["dep:quickcheck"]
rkyv = ["dep:rkyv"]
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"]
[dependencies]
arbitrary = { version = "1", optional = true, default-features = false }
borsh = { version = "1", optional = true }
bytes = { version = "1", optional = true }
diesel = { version = "2", optional = true, default-features = false }
markup = { version = "0.13", optional = true, default-features = false }
proptest = { version = "1", optional = true, default-features = false, features = ["std"] }
quickcheck = { version = "1", optional = true, default-features = false }
rkyv = { version = "0.7", optional = true, default-features = false, features = ["size_32"] }
serde = { version = "1", optional = true, default-features = false, features = ["derive", "alloc"] }
smallvec = { version = "1", optional = true, features = ["union"] }
sqlx = { version = "0.7", optional = true, default-features = false }
castaway = { version = "0.2.3", default-features = false, features = ["alloc"] }
cfg-if = "1"
itoa = "1"
rustversion = "1"
ryu = "1"
static_assertions = "1"
[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.7", default-features = false, features = ["alloc", "size_32"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
test-case = "3"
test-strategy = "0.3"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]