Cargo Features

[dependencies]
pest = { version = "2.7.7", default-features = false, features = ["std", "pretty-print", "const_prec_climber", "memchr"] }
default = memchr, std

These default features are set whenever pest is added without default-features = false somewhere in the dependency tree.

std default

Implements std::error::Error for the Error type

Enables thiserror, std of ucd-trie

pretty-print

Enables the to_json function for Pair and Pairs

Enables serde and serde_json

const_prec_climber

Enable const fn constructor for PrecClimber

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

memchr default