Crate features / serde
Feature flags · serde 1.0.229 · from crates.io 2026-10-24
serde features: what each one does, and the line to copy
Short answerserde 1.0.229 has 5 features. By default it turns on std; add default-features = false to start from nothing. It needs Rust 1.56 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
alloc | serde_core/alloc | |
derive | serde_derive | |
rc | serde_core/rc | |
std | yes | serde_core/std |
unstable | serde_core/unstable |
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 serde declares (rust-version), and the release that changed it:
- 1.0.131 (2021-12-09): Rust 1.15
- 1.0.137 (2022-05-01): Rust 1.13
- 1.0.153 (2023-03-07): Rust 1.19
- 1.0.180 (2023-07-31): Rust 1.31
- 1.0.220 (2025-09-13): Rust 1.56
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p serde --precise <version>, or use resolver 3, which picks compatible versions for you.
More on serde
Real downloads, dependents and alternatives: serde crate data (4.3M real downloads a day, 133,588 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021
Up next
Before you depend on itserde crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?