Cargo Features
[dependencies]
similar = { version = "3.1.1", default-features = false, features = ["std", "text", "inline", "wasm32_web_time", "unicode", "bytes", "hashbrown", "serde"] }
- default = std, text
-
These default features are set whenever
similaris added withoutsomewhere in the dependency tree.default-features = false - std default
- text default bytes? inline? unicode?
-
Affects
similar::udiff,similar::utils… - inline = text
-
Affects
utils::diff_lines_inline… - wasm32_web_time = web-time
- unicode = text, unicode-segmentation
-
Enables unicode of optional bstr
Affects
abstraction::DiffableStr.tokenize_unicode_words,abstraction::DiffableStr.tokenize_graphemes,utils::diff_unicode_words,utils::diff_graphemes… - bytes = bstr, text
- hashbrown
-
Enables hashbrown ^0.15
Features from optional dependencies
In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- unicode-segmentation unicode?
- bstr bytes?
- serde implicit feature
-
Enables serde
serde:
A generic serialization/deserialization framework
- web-time wasm32_web_time?