Crate features / serde_core
Feature flags · serde_core 1.0.229 · from crates.io 2026-10-24
serde_core features: what each one does, and the line to copy
Short answerserde_core 1.0.229 has 5 features. By default it turns on std, result; 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 | nothing else (a switch the code checks) | |
rc | nothing else (a switch the code checks) | |
result | yes | nothing else (a switch the code checks) |
std | yes | nothing else (a switch the code checks) |
unstable | 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 serde_core declares (rust-version), and the release that changed it:
- 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_core --precise <version>, or use resolver 3, which picks compatible versions for you.
More on serde_core
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021
Up next
Next crateFeature flags for every popular crateRead it next →Also worth your time
Did this answer your question?