Cargo Features

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

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

std default miette-error?

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

Enables thiserror, std of ucd-trie

pretty-print miette-error?

Enables the to_json function for Pair and Pairs

Enables serde and serde_json

const_prec_climber

Enable const fn constructor for PrecClimber

miette-error = pretty-print, std

Enable miette error

Enables miette and thiserror

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.

memchr default