Cargo Features
[dependencies]
repr = { version = "0.7.0", default-features = false, features = ["perf-inline", "quotient", "unicode", "unicode-age", "unicode-bool", "unicode-case", "unicode-gencat", "unicode-perl", "unicode-script", "unicode-segment"] }
- default = perf-inline, std, unicode
-
These default features are set whenever
repr
is added without
somewhere in the dependency tree.default-features = false Enables regex-syntax
- std perf-inline default
- quotient = aho-corasick, memchr
-
Affects
compile::Program.prefixes
,compile::Program.suffixes
,compile::Program.ac
… - unicode default = unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-perl, unicode-script, unicode-segment
-
Enables unicode of regex-syntax
- unicode-age unicode
-
Enables use of the
Age
property, e.g.,\p{Age:3.0}
.Enables unicode-age of regex-syntax
- unicode-bool unicode
-
Enables use of a smattering of boolean properties, e.g.,
\p{Emoji}
.Enables unicode-bool of regex-syntax
- unicode-case unicode
-
Enables Unicode-aware case insensitive matching, e.g.,
(?i)β
.Enables unicode-case of regex-syntax
- unicode-gencat unicode
-
Enables Unicode general categories, e.g.,
\p{Letter}
or\pL
.Enables unicode-gencat of regex-syntax
- unicode-perl unicode
-
Enables Unicode-aware Perl classes corresponding to
\w
,\s
and\d
.Enables unicode-perl of regex-syntax
- unicode-script unicode
-
Enables Unicode scripts and script extensions, e.g.,
\p{Greek}
.Enables unicode-script of regex-syntax
- unicode-segment unicode
-
Enables Unicode segmentation properties, e.g.,
\p{gcb=Extend}
.Enables unicode-segment of regex-syntax
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.
- aho-corasick quotient?
- memchr quotient?
-
Enables memchr
For skipping along search text quickly when a leading byte is known.