{"id":13478339,"url":"https://github.com/serde-rs/serde","last_synced_at":"2025-05-12T18:20:45.318Z","repository":{"id":11816887,"uuid":"14367737","full_name":"serde-rs/serde","owner":"serde-rs","description":"Serialization framework for Rust","archived":false,"fork":false,"pushed_at":"2025-04-27T08:16:03.000Z","size":8554,"stargazers_count":9648,"open_issues_count":317,"forks_count":819,"subscribers_count":74,"default_branch":"master","last_synced_at":"2025-05-05T15:46:24.091Z","etag":null,"topics":["derive","no-std","rust","serde"],"latest_commit_sha":null,"homepage":"https://serde.rs/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serde-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"dtolnay"}},"created_at":"2013-11-13T15:22:58.000Z","updated_at":"2025-05-05T13:07:52.000Z","dependencies_parsed_at":"2024-03-04T00:33:05.242Z","dependency_job_id":"551b89a4-3080-49f9-9d99-760b708f3427","html_url":"https://github.com/serde-rs/serde","commit_stats":{"total_commits":3372,"total_committers":194,"mean_commits":17.38144329896907,"dds":0.4092526690391459,"last_synced_commit":"930401b0dd58a809fce34da091b8aa3d6083cb33"},"previous_names":[],"tags_count":313,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serde-rs%2Fserde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serde-rs%2Fserde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serde-rs%2Fserde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serde-rs%2Fserde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serde-rs","download_url":"https://codeload.github.com/serde-rs/serde/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252593659,"owners_count":21773501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["derive","no-std","rust","serde"],"created_at":"2024-07-31T16:01:55.730Z","updated_at":"2025-05-12T18:20:45.293Z","avatar_url":"https://github.com/serde-rs.png","language":"Rust","readme":"# Serde \u0026emsp; [![Build Status]][actions] [![Latest Version]][crates.io] [![serde msrv]][Rust 1.56] [![serde_derive msrv]][Rust 1.61]\n\n[Build Status]: https://img.shields.io/github/actions/workflow/status/serde-rs/serde/ci.yml?branch=master\n[actions]: https://github.com/serde-rs/serde/actions?query=branch%3Amaster\n[Latest Version]: https://img.shields.io/crates/v/serde.svg\n[crates.io]: https://crates.io/crates/serde\n[serde msrv]: https://img.shields.io/crates/msrv/serde.svg?label=serde%20msrv\u0026color=lightgray\n[serde_derive msrv]: https://img.shields.io/crates/msrv/serde_derive.svg?label=serde_derive%20msrv\u0026color=lightgray\n[Rust 1.56]: https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html\n[Rust 1.61]: https://blog.rust-lang.org/2022/05/19/Rust-1.61.0.html\n\n**Serde is a framework for *ser*ializing and *de*serializing Rust data structures efficiently and generically.**\n\n---\n\nYou may be looking for:\n\n- [An overview of Serde](https://serde.rs/)\n- [Data formats supported by Serde](https://serde.rs/#data-formats)\n- [Setting up `#[derive(Serialize, Deserialize)]`](https://serde.rs/derive.html)\n- [Examples](https://serde.rs/examples.html)\n- [API documentation](https://docs.rs/serde)\n- [Release notes](https://github.com/serde-rs/serde/releases)\n\n## Serde in action\n\n\u003cdetails\u003e\n\u003csummary\u003e\nClick to show Cargo.toml.\n\u003ca href=\"https://play.rust-lang.org/?edition=2021\u0026gist=72755f28f99afc95e01d63174b28c1f5\" target=\"_blank\"\u003eRun this code in the playground.\u003c/a\u003e\n\u003c/summary\u003e\n\n```toml\n[dependencies]\n\n# The core APIs, including the Serialize and Deserialize traits. Always\n# required when using Serde. The \"derive\" feature is only required when\n# using #[derive(Serialize, Deserialize)] to make Serde work with structs\n# and enums defined in your crate.\nserde = { version = \"1.0\", features = [\"derive\"] }\n\n# Each data format lives in its own crate; the sample code below uses JSON\n# but you may be using a different one.\nserde_json = \"1.0\"\n```\n\n\u003c/details\u003e\n\u003cp\u003e\u003c/p\u003e\n\n```rust\nuse serde::{Deserialize, Serialize};\n\n#[derive(Serialize, Deserialize, Debug)]\nstruct Point {\n    x: i32,\n    y: i32,\n}\n\nfn main() {\n    let point = Point { x: 1, y: 2 };\n\n    // Convert the Point to a JSON string.\n    let serialized = serde_json::to_string(\u0026point).unwrap();\n\n    // Prints serialized = {\"x\":1,\"y\":2}\n    println!(\"serialized = {}\", serialized);\n\n    // Convert the JSON string back to a Point.\n    let deserialized: Point = serde_json::from_str(\u0026serialized).unwrap();\n\n    // Prints deserialized = Point { x: 1, y: 2 }\n    println!(\"deserialized = {:?}\", deserialized);\n}\n```\n\n## Getting help\n\nSerde is one of the most widely used Rust libraries so any place that Rustaceans\ncongregate will be able to help you out. For chat, consider trying the\n[#rust-questions] or [#rust-beginners] channels of the unofficial community\nDiscord (invite: \u003chttps://discord.gg/rust-lang-community\u003e), the [#rust-usage] or\n[#beginners] channels of the official Rust Project Discord (invite:\n\u003chttps://discord.gg/rust-lang\u003e), or the [#general][zulip] stream in Zulip. For\nasynchronous, consider the [\\[rust\\] tag on StackOverflow][stackoverflow], the\n[/r/rust] subreddit which has a pinned weekly easy questions post, or the Rust\n[Discourse forum][discourse]. It's acceptable to file a support issue in this\nrepo but they tend not to get as many eyes as any of the above and may get\nclosed without a response after some time.\n\n[#rust-questions]: https://discord.com/channels/273534239310479360/274215136414400513\n[#rust-beginners]: https://discord.com/channels/273534239310479360/273541522815713281\n[#rust-usage]: https://discord.com/channels/442252698964721669/443150878111694848\n[#beginners]: https://discord.com/channels/442252698964721669/448238009733742612\n[zulip]: https://rust-lang.zulipchat.com/#narrow/stream/122651-general\n[stackoverflow]: https://stackoverflow.com/questions/tagged/rust\n[/r/rust]: https://www.reddit.com/r/rust\n[discourse]: https://users.rust-lang.org\n\n\u003cbr\u003e\n\n#### License\n\n\u003csup\u003e\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\n\u003cbr\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in Serde by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e\n","funding_links":["https://github.com/sponsors/dtolnay"],"categories":["Rust","库 Libraries","Objects - Entity, Actor","Rust 程序设计","rust","File Processing","Awesome Tools","Programming","Other","\u003ca name=\"Rust\"\u003e\u003c/a\u003eRust"],"sub_categories":["编码 Encoding","Saving/Loading Objects, Compositing Packets","网络服务_其他","Languages","Rust 🦀","Rust libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserde-rs%2Fserde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserde-rs%2Fserde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserde-rs%2Fserde/lists"}