Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

serde

> 编程语言
Open source

Serialization framework for Rust

10.7K stars0 likes2 views
WebsiteGitHub

About

Serialization framework for Rust

Serde   Build Status Latest Version serde msrv serde_derive msrv

**Serde is a framework for serializing and deserializing Rust data structures efficiently and generically.**


You may be looking for:

  • An overview of Serde
  • Data formats supported by Serde
  • Setting up #[derive(Serialize, Deserialize)]
  • Examples
  • API documentation
  • Release notes

Serde in action

Click to show Cargo.toml. Run this code in the playground.
toml
[dependencies]

# The core APIs, including the Serialize and Deserialize traits. Always
# required when using Serde. The "derive" feature is only required when
# using #[derive(Serialize, Deserialize)] to make Serde work with structs
# and enums defined in your crate.
serde = { version = "1.0", features = ["derive"] }

# Each data format lives in its own crate; the sample code below uses JSON
# but you may be using a different one.
serde_json = "1.0"

…

Getting help

Serde is one of the most widely used Rust libraries so any place that Rustaceans congregate will be able to help you out. For chat, consider trying the #rust-questions or #rust-beginners channels of the unofficial community Discord (invite: https://discord.gg/rust-lang-community), the #rust-usage or #beginners channels of the official Rust Project Discord (invite: https://discord.gg/rust-lang), or the #general stream in Zulip. For asynchronous, consider the [rust] tag on StackOverflow, the /r/rust subreddit which has a pinned weekly easy questions post, or the Rust Discourse forum. It's acceptable to file a support issue in this repo but they tend not to get as many eyes as any of the above and may get closed without a response after some time.


License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Serde by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Issues· 402 open

View all issuesOpen on GitHub
  • #2893

    Ambiguous Error message when deserializing adjacently tagged enum

    Updated Sep 14, 2026
  • #3100

    Internally tagged enum with a newtype variant holding `Vec<Self>` / `Box<Self>`: derived `Serialize` fails to compile with E0275 (and hangs rustc if the recursion limit is raised)

    Updated Sep 7, 2026
  • #3097

    Serde drops error source information when deserializing using try_from

    Updated Sep 6, 2026
  • #3096

    [Feature Request] Add `skip_serializing_if_default` to skip fields equal to their default value

    Updated Aug 13, 2026
  • #1463

    Replacement API for Deserializer in-band Signalling

    enhancementUpdated Aug 3, 2026
  • #1183

    Internal buffering disrupts format-specific deserialization features

    bugUpdated Aug 3, 2026
  • #3091

    [Feature request] Custom Deserializer impls and functions let you pop out values from Deserializer

    Updated Jul 29, 2026
  • #3088

    Version-locked crates break the fallback resolver

    Updated Jul 24, 2026
  • #3086

    Add a way to use default field value as serde default

    Updated Jul 20, 2026
  • #3083

    Failure in deserializing #[serde(untagged)] enum should generate meaningful error

    Updated Jul 15, 2026

> Tags

Rustderiveno-stdrustserde

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言