Crate features / borsh-derive
Feature flags · borsh-derive 1.8.1 · from crates.io 2026-10-24
borsh-derive features: what each one does, and the line to copy
Short answerborsh-derive 1.8.1 has 2 features. Nothing is on by default: turn on what you use. It needs Rust 1.77.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
force_exhaustive_checks | nothing else (a switch the code checks) | |
schema | 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 borsh-derive declares (rust-version), and the release that changed it:
- 1.0.0-alpha.1 (2023-08-09): Rust 1.66.0
- 1.3.1 (2024-01-10): Rust 1.67.0
- 0.10.4 (2024-09-23): Rust 1.66.0
- 1.5.2 (2024-11-07): Rust 1.67.0
- 1.6.0 (2025-11-25): Rust 1.77.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p borsh-derive --precise <version>, or use resolver 3, which picks compatible versions for you.
More on borsh-derive
Real downloads, dependents and alternatives: borsh-derive crate data (483.2K real downloads a day, 63 dependents).
docs.rs feature list · crates.io · license Apache-2.0 · edition 2018
Up next
Before you depend on itborsh-derive crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?