{"id":63268,"library":"specs-derive","title":"specs-derive","description":"Custom derive macro for Specs components, enabling automatic implementation of component traits.","status":"active","version":"0.4.1","language":"rust","source_language":null,"source_url":"https://github.com/slide-rs/specs","tags":["ecs","derive","macro","specs","component"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nspecs-derive = \"0.4.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add specs-derive","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Component","correct":"use specs_derive::Component;"}],"quickstart":{"code":"use specs_derive::Component;\nuse specs::prelude::*;\n\n#[derive(Component)]\nstruct Position {\n    x: f32,\n    y: f32,\n}\n\nfn main() {\n    let mut world = World::new();\n    world.register::<Position>();\n    world.create_entity().with(Position { x: 0.0, y: 0.0 }).build();\n}","lang":"rust","description":"Derive the Component trait for a struct."},"warnings":[],"env_vars":null,"search_vec":"'automat':11 'compon':9,14,20 'custom':4 'deriv':3,5,17 'ec':16 'enabl':10 'implement':12 'macro':6,18 'spec':2,8,19 'specs-der':1 'trait':15","created_at":"2026-06-17T16:41:49.946734+00:00","updated_at":"2026-06-17T16:41:49.946734+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/slide-rs/specs","github":"https://github.com/slide-rs/specs","docs":"https://docs.rs/specs-derive/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}