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 whenever similar is added without default-features = false somewhere in the dependency tree.

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.

unicode-segmentation unicode?
bstr bytes?
serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework