Email me

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

3.24.0latest version
23features
19optional dependencies
1.88MSRV (rust-version)

Every feature

FeatureIn defaultTurns on
allocserde_core/alloc, base64?/alloc, bs58?/alloc, chrono_0_4?/alloc, hex?/alloc, jiff_0_2?/alloc, serde_json?/alloc, time_0_3?/alloc
base58dep:bs58, alloc
base64dep:base64, alloc
chronochrono_0_4
chrono_0_4dep:chrono_0_4
guidedep:document-features, macros, std
hashbrown_0_14dep:hashbrown_0_14, alloc
hashbrown_0_15dep:hashbrown_0_15, alloc
hashbrown_0_16dep:hashbrown_0_16, alloc
hashbrown_0_17dep:hashbrown_0_17, alloc
hexdep:hex, alloc
indexmapindexmap_1
indexmap_1dep:indexmap_1, alloc
indexmap_2dep:indexmap_2, alloc
jiff_0_2dep:jiff_0_2
jsondep:serde_json, alloc
macrosyesdep:serde_with_macros
schemars_0_8dep:schemars_0_8, std, serde_with_macros?/schemars_0_8, dep:serde_json
schemars_0_9dep:schemars_0_9, alloc, serde_with_macros?/schemars_0_9, dep:serde_json
schemars_1dep:schemars_1, alloc, serde_with_macros?/schemars_1, dep:serde_json
smallvec_1dep:smallvec_1
stdyesalloc, 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_3dep: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 →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ