{"id":57416,"library":"serde-macros","title":"Serde Macros","description":"Macros to auto-generate implementations for the serde framework.","status":"active","version":"0.8.9","language":"rust","source_language":null,"source_url":"https://github.com/serde-rs/serde","tags":["serde","serialization","macros"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nserde_macros = \"0.8.9\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add serde_macros","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Serialize","correct":"use serde_macros::Serialize;"}],"quickstart":{"code":"use serde_macros::Serialize;\n\n#[derive(Serialize)]\nstruct Point {\n    x: i32,\n    y: i32,\n}\n\nlet point = Point { x: 1, y: 2 };\nlet json = serde_json::to_string(&point).unwrap();\nprintln!(\"{}\", json);","lang":"rust","description":"Derives Serialize for a struct and serializes it to JSON."},"warnings":[{"fix":"Use serde::{Serialize, Deserialize} instead.","message":"This crate is deprecated in favor of serde's built-in derive macros.","severity":"breaking","affected_versions":">=0.9.0"}],"env_vars":null,"search_vec":"'auto':6 'auto-gener':5 'framework':12 'generat':7 'implement':8 'macro':2,3,15 'serd':1,11,13 'serial':14","created_at":"2026-06-16T15:41:33.274634+00:00","updated_at":"2026-06-16T15:41:33.274634+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_macros/","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}}