Crate features / pest
Feature flags · pest 2.9.4 · from crates.io 2026-10-24
pest features: what each one does, and the line to copy
Short answerpest 2.9.4 has 4 features. By default it turns on std, memchr; add default-features = false to start from nothing. It needs Rust 1.83 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
const_prec_climber | nothing else (a switch the code checks) | |
miette-error | std, pretty-print, dep:miette | |
pretty-print | dep:serde, dep:serde_json | |
std | yes | ucd-trie/std, dep:stacker, dep:psm |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version pest declares (rust-version), and the release that changed it:
- 2.3.0 (2022-08-21): Rust 1.56
- 2.7.0 (2023-06-22): Rust 1.60
- 2.7.4 (2023-09-26): Rust 1.61
- 2.8.0 (2025-03-25): Rust 1.65
- 2.8.1 (2025-06-15): Rust 1.80
- 2.8.3 (2025-10-03): Rust 1.81
- 2.8.4 (2025-11-21): Rust 1.83
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p pest --precise <version>, or use resolver 3, which picks compatible versions for you.
More on pest
Real downloads, dependents and alternatives: pest crate data (916.8K real downloads a day, 1,270 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021
Up next
Before you depend on itpest crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?