Crate features / zvariant
Feature flags · zvariant 5.15.1 · from crates.io 2026-10-24
zvariant features: what each one does, and the line to copy
Short answerzvariant 5.15.1 has 4 features. Nothing is on by default: turn on what you use. It needs Rust 1.87 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
camino | dep:camino | |
gvariant | zvariant_derive/gvariant, zvariant_utils/gvariant | |
option-as-array | nothing else (a switch the code checks) | |
ostree-tests | gvariant |
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 zvariant declares (rust-version), and the release that changed it:
- 3.5.0 (2022-07-24): Rust 1.60
- 3.15.0 (2023-06-28): Rust 1.64
- 4.0.0 (2024-02-12): Rust 1.75
- 3.15.1 (2024-02-23): Rust 1.64
- 4.0.2 (2024-02-25): Rust 1.75
- 5.0.0 (2024-10-17): Rust 1.81
- 5.1.0 (2024-11-02): Rust 1.80
- 5.2.0 (2025-01-10): Rust 1.77
- 5.9.0 (2026-01-09): Rust 1.85
- 5.10.0 (2026-02-22): Rust 1.87
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p zvariant --precise <version>, or use resolver 3, which picks compatible versions for you.
More on zvariant
Real downloads, dependents and alternatives: zvariant crate data (363.9K real downloads a day, 86 dependents).
Security record: zvariant advisories.
docs.rs feature list · crates.io · license MIT · edition 2024
Up next
Before you depend on itzvariant crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?