{"id":57097,"library":"serde-derive","title":"Serde Derive","description":"Provides #[derive(Serialize, Deserialize)] macros for Serde.","status":"active","version":"1.0.228","language":"rust","source_language":null,"source_url":"https://github.com/serde-rs/serde","tags":["serialization","derive","macro","json"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nserde_derive = \"1.0.228\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add serde_derive","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Serialize","correct":"use serde::{Serialize, Deserialize};"}],"quickstart":{"code":"use serde::{Serialize, Deserialize};\n\n#[derive(Serialize, Deserialize)]\nstruct Point {\n    x: i32,\n    y: i32,\n}\n\nfn main() {\n    let point = Point { x: 1, y: 2 };\n    let json = serde_json::to_string(&point).unwrap();\n    println!(\"{}\", json);\n}","lang":"rust","description":"Derive Serialize and Deserialize for a struct."},"warnings":[{"fix":"Add both serde and serde_derive to Cargo.toml, or use serde with the \"derive\" feature.","message":"serde_derive is a proc-macro crate; it must be listed as a dependency separately from serde.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'deriv':2,4,11 'deseri':6 'json':13 'macro':7,12 'provid':3 'serd':1,9 'serial':5,10","created_at":"2026-06-16T15:28:04.317047+00:00","updated_at":"2026-06-16T15:28:04.317047+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://serde.rs","github":"https://github.com/serde-rs/serde","docs":"https://docs.rs/serde_derive/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}