Crate features / serde_with
Feature flags · serde_with 3.24.0 · from crates.io 2026-10-24
serde_with features: what each one does, and the line to copy
Short answerserde_with 3.24.0 has 23 features. By default it turns on std, macros; add default-features = false to start from nothing. It needs Rust 1.88 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
alloc | serde_core/alloc, base64?/alloc, bs58?/alloc, chrono_0_4?/alloc, hex?/alloc, jiff_0_2?/alloc, serde_json?/alloc, time_0_3?/alloc | |
base58 | dep:bs58, alloc | |
base64 | dep:base64, alloc | |
chrono | chrono_0_4 | |
chrono_0_4 | dep:chrono_0_4 | |
guide | dep:document-features, macros, std | |
hashbrown_0_14 | dep:hashbrown_0_14, alloc | |
hashbrown_0_15 | dep:hashbrown_0_15, alloc | |
hashbrown_0_16 | dep:hashbrown_0_16, alloc | |
hashbrown_0_17 | dep:hashbrown_0_17, alloc | |
hex | dep:hex, alloc | |
indexmap | indexmap_1 | |
indexmap_1 | dep:indexmap_1, alloc | |
indexmap_2 | dep:indexmap_2, alloc | |
jiff_0_2 | dep:jiff_0_2 | |
json | dep:serde_json, alloc | |
macros | yes | dep:serde_with_macros |
schemars_0_8 | dep:schemars_0_8, std, serde_with_macros?/schemars_0_8, dep:serde_json | |
schemars_0_9 | dep:schemars_0_9, alloc, serde_with_macros?/schemars_0_9, dep:serde_json | |
schemars_1 | dep:schemars_1, alloc, serde_with_macros?/schemars_1, dep:serde_json | |
smallvec_1 | dep:smallvec_1 | |
std | yes | alloc, bs58?/std, serde_core/std, chrono_0_4?/clock, chrono_0_4?/std, indexmap_1?/std, indexmap_2?/std, jiff_0_2?/std, jiff_0_2?/tz-system, jiff_0_2?/tzdb-bundle-platform, jiff_0_2?/tzdb-concatenated, jiff_0_2?/tzdb-zoneinfo, time_0_3?/serde-well-known, time_0_3?/std, schemars_0_9?/std, schemars_1?/std |
time_0_3 | dep:time_0_3 |
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_with declares (rust-version), and the release that changed it:
- 1.11.0 (2021-10-18): Rust 1.46
- 1.14.0 (2022-05-29): Rust 1.53
- 2.0.0-rc.0 (2022-06-29): Rust 1.60
- 3.1.0 (2023-07-17): Rust 1.61
- 3.2.0 (2023-08-04): Rust 1.64
- 3.6.0 (2024-01-30): Rust 1.65
- 3.8.2 (2024-06-30): Rust 1.67
- 3.12.0 (2024-12-25): Rust 1.70
- 3.13.0 (2025-06-14): Rust 1.74
- 3.15.0 (2025-10-03): Rust 1.76
- 3.17.0 (2026-02-25): Rust 1.82
- 3.18.0 (2026-03-13): Rust 1.88
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p serde_with --precise <version>, or use resolver 3, which picks compatible versions for you.
More on serde_with
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?