{"id":57258,"library":"derivative","title":"Derivative","description":"A set of alternative `derive` attributes for Rust, providing more control over trait implementations.","status":"active","version":"2.2.0","language":"rust","source_language":null,"source_url":"https://github.com/mcarton/rust-derivative","tags":["derive","macro","trait","customization"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nderivative = \"2.2.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add derivative","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Derivative","correct":"use derivative::Derivative;"}],"quickstart":{"code":"use derivative::Derivative;\n\n#[derive(Derivative)]\n#[derivative(Debug)]\nstruct Point {\n    x: i32,\n    #[derivative(Debug=\"ignore\")]\n    y: i32,\n}\n\nfn main() {\n    let p = Point { x: 1, y: 2 };\n    println!(\"{:?}\", p); // Point { x: 1 }\n}","lang":"rust","description":"Minimal example using Derivative to customize Debug output."},"warnings":[{"fix":"Consider using standard `#[derive(...)]` or `serde`'s attributes instead.","message":"Derivative is largely superseded by the standard library's derive macros and may not be actively maintained.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'altern':5 'attribut':7 'control':12 'custom':19 'deriv':1,6,16 'implement':15 'macro':17 'provid':10 'rust':9 'set':3 'trait':14,18","created_at":"2026-06-16T15:35:00.098250+00:00","updated_at":"2026-06-16T15:35:00.098250+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://github.com/mcarton/rust-derivative","github":"https://github.com/mcarton/rust-derivative","docs":"https://docs.rs/derivative/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"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}}