Crate features / borsh
Feature flags · borsh 1.8.1 · from crates.io 2026-10-24
borsh features: what each one does, and the line to copy
Short answerborsh 1.8.1 has 5 features. By default it turns on std; add default-features = false to start from nothing. It needs Rust 1.77.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
de_strict_order | nothing else (a switch the code checks) | |
derive | borsh-derive | |
rc | nothing else (a switch the code checks) | |
std | yes | bytes?/std |
unstable__schema | derive, borsh-derive/schema |
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 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 --precise <version>, or use resolver 3, which picks compatible versions for you.
More on borsh
Real downloads, dependents and alternatives: borsh crate data (674.1K real downloads a day, 1,483 dependents).
Security record: borsh advisories.
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2018
Up next
Before you depend on itborsh crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?