Cargo Features

[dependencies]
nom = { version = "7.1.3", default-features = false, features = ["std", "alloc", "docsrs"] }
default = std

The std feature is set by default whenever nom is added without default-features = false somewhere in the dependency tree.

std default = alloc

Enables std of memchr and minimal-lexical

memchr:

The 'std' feature permits the memchr crate to use the standard library. This permits this crate to use runtime CPU feature detection to automatically accelerate searching via vector instructions. Without the standard library,
this automatic detection is not possible.

Affects error::dbg_dmp, nom::lib.std, traits::HexDisplay

alloc std

Affects tests::ErrorStr, complete::escaped_transform, streaming::escaped_transform, error::VerboseError, error::VerboseErrorKind, error::convert_error, multi::many0, multi::many1, multi::many_till, multi::separated_list0, multi::separated_list1, multi::many_m_n, multi::count, multi::length_count

docsrs

Affects nom::recipes