Crate features / compact_str
Feature flags · compact_str 0.10.0 · from crates.io 2026-10-24
compact_str features: what each one does, and the line to copy
Short answercompact_str 0.10.0 has 23 features. By default it turns on std; add default-features = false to start from nothing. It needs Rust 1.71 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
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 | |
std | yes | nothing else (a switch the code checks) |
utoipa | dep:utoipa, std | |
valuable | dep:valuable | |
zeroize | dep:zeroize |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version compact_str declares (rust-version), and the release that changed it:
- 0.10.0 (2026-07-13): Rust 1.71
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p compact_str --precise <version>, or use resolver 3, which picks compatible versions for you.
More on compact_str
docs.rs feature list · crates.io · license MIT · edition 2021
Up next
Next crateFeature flags for every popular crateRead it next →Also worth your time
Did this answer your question?