Cargo Features
[dependencies]
dangerous = { version = "0.10.0", default-features = false, features = ["std", "alloc", "simd", "unicode", "full-backtrace", "zc", "nom", "regex"] }
- default = full-backtrace, simd, std, unicode
-
These default features are set whenever
dangerous
is added without
somewhere in the dependency tree.default-features = false - std default simd = alloc
-
Enables
std::error::Error
support. - alloc full-backtrace std
-
Enables allocations.
Affects
backtrace::FullBacktrace
… - simd default = std
-
Enables all supported SIMD optimisations.
Enables runtime-dispatch-simd of bytecount, std of memchr
- unicode default = unicode-width
-
Enables improved unicode printing support.
- full-backtrace default = alloc
-
Enables full context backtraces.
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.