Cargo Features
[dependencies]
once-cell-regex = { version = "0.2.1", default-features = false, features = ["std", "parking_lot", "perf", "unicode"] }
- default = perf, std, unicode
-
These default features are set whenever
once-cell-regex
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of once_cell and regex
once_cell:
Enables
once_cell::sync
module. - parking_lot
-
Enables parking_lot of once_cell
once_cell:
Uses parking_lot to implement once_cell::sync::OnceCell.
This makes no speed difference, but makes each OnceCell<T>
up to 16 bytes smaller, depending on the size of the T. - perf default
-
regex:
PERFORMANCE FEATURES
Enables all default performance features. Note that this specifically does not include perf-dfa-full, because it leads to higher compile times and bigger binaries, and the runtime performance improvement is not obviously worth it. - unicode default
-
regex:
UNICODE DATA FEATURES
Enables all Unicode features. This expands if new Unicode features are added.
once-cell-regex has 5 features without comments.