Cargo Features

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


Enables the to_json function for Pair and Pairs

Enables serde and serde_json


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