Cargo Features
[dependencies]
similar = { version = "2.6.0", default-features = false, features = ["text", "inline", "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
- 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.