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 default-features = false somewhere in the dependency tree.

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.

zc implicit feature

Enables zc

zc:

Self-referential zero-copy structure

nom implicit feature

Enables nom ^6

nom:

A byte-oriented, zero-copy, parser combinators library

regex implicit feature
memchr simd
bytecount simd
unicode-width unicode