Crate features / pyo3-macros
Feature flags · pyo3-macros 0.30.1 · from crates.io 2026-10-24
pyo3-macros features: what each one does, and the line to copy
Short answerpyo3-macros 0.30.1 has 3 features. Nothing is on by default: turn on what you use. It needs Rust 1.85 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
experimental-async | pyo3-macros-backend/experimental-async | |
experimental-inspect | pyo3-macros-backend/experimental-inspect | |
multiple-pymethods | nothing else (a switch the code checks) |
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 pyo3-macros declares (rust-version), and the release that changed it:
- 0.23.3 (2024-12-03): Rust 1.63
- 0.26.0 (2025-08-29): Rust 1.74
- 0.28.0 (2026-02-01): Rust 1.83
- 0.30.1 (2026-10-14): Rust 1.85
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p pyo3-macros --precise <version>, or use resolver 3, which picks compatible versions for you.
More on pyo3-macros
Real downloads, dependents and alternatives: pyo3-macros crate data (813.1K real downloads a day, 3 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2024
Up next
Before you depend on itpyo3-macros crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?