Crate features / similar
Feature flags · similar 3.2.0 · from crates.io 2026-10-24
similar features: what each one does, and the line to copy
Short answersimilar 3.2.0 has 7 features. By default it turns on std, text; add default-features = false to start from nothing. It needs Rust 1.85 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
bytes | bstr, text | |
hashbrown | dep:hashbrown | |
inline | text | |
std | yes | bstr?/std |
text | yes | nothing else (a switch the code checks) |
unicode | text, unicode-segmentation, bstr?/unicode | |
wasm32_web_time | web-time |
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 similar declares (rust-version), and the release that changed it:
- 2.2.0 (2022-08-01): Rust 1.41
- 2.5.0 (2024-03-28): Rust 1.60
- 3.0.0 (2026-04-01): Rust 1.85
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p similar --precise <version>, or use resolver 3, which picks compatible versions for you.
More on similar
Real downloads, dependents and alternatives: similar crate data (713K real downloads a day, 1,249 dependents).
docs.rs feature list · crates.io · license Apache-2.0 · edition 2024
Up next
Before you depend on itsimilar crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?