Cargo Features

[dependencies]
rustrict = { version = "0.7.24", default-features = false, features = ["censor", "context", "customize", "width", "pii", "find_false_positives", "find_replacements", "trace", "trace_full", "serde", "unicode-width", "imageproc", "rusttype", "image", "walkdir"] }
default = censor, context

These default features are set whenever rustrict is added without default-features = false somewhere in the dependency tree.

censor default context customize? find_false_positives? trace? = arrayvec, bitflags, itertools, lazy_static, rustc-hash, unicode-normalization
context default = censor, strsim
customize = censor

Affects censor::add_word

width = lazy_static
pii = lazy_static, regex
find_false_positives = censor, indicatif, rayon, regex

Required by the false_positive_finder binary

find_replacements = csv

Required by the replacement_finder binary

trace trace_full? = censor

Required by the trace binary

trace_full = trace
serde

Enables serde, serde of arrayvec

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.

arrayvec censor serde?
unicode-normalization censor
unicode-width implicit feature

Enables unicode-width

unicode-width:

Determine displayed width of char and str types according to Unicode Standard Annex #11 rules

Required by the character_analyzer binary

bitflags censor

Enables bitflags ^1.3

lazy_static censor pii? width?
itertools censor

Enables itertools ^0.10

rustc-hash censor
regex find_false_positives? pii?
indicatif find_false_positives?
rayon find_false_positives?

Required by the character_analyzer binary

strsim context

Enables strsim ^0.10.0

csv find_replacements?
imageproc implicit feature

Enables imageproc ^0.22

imageproc:

Image processing operations

Required by the character_analyzer binary

rusttype implicit feature

Required by the character_analyzer binary

image implicit feature

Enables image ^0.23.14

image:

Imaging library. Provides basic image processing and encoders/decoders for common image formats.

Required by the character_analyzer binary

walkdir implicit feature

Enables walkdir

walkdir:

Recursively walk a directory

Required by the character_analyzer binary