Cargo Features
[dependencies]
similar = { version = "2.7.0", default-features = false, features = ["text", "inline", "wasm32_web_time", "unicode", "bytes", "serde"] }
- default = text
-
The
text
feature is set by default wheneversimilar
is added without
somewhere in the dependency tree.default-features = false - text default bytes? inline? unicode?
-
Affects
similar::udiff
,similar::utils
… - inline = text
- wasm32_web_time = web-time
- unicode = text, unicode-segmentation
-
Enables std and unicode of optional bstr
Affects
abstraction::DiffableStr.tokenize_unicode_words
,abstraction::DiffableStr.tokenize_graphemes
,utils::diff_unicode_words
,utils::diff_graphemes
… - bytes = bstr, text
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?