{"id":64742,"library":"bytemuck-derive","title":"Bytemuck Derive","description":"Derive macros for the `bytemuck` crate to safely cast between types.","status":"active","version":"1.10.2","language":"rust","source_language":null,"source_url":"https://github.com/Lokathor/bytemuck","tags":["derive","macro","bytemuck","cast","safety"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nbytemuck_derive = \"1.10.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add bytemuck_derive","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Pod","correct":"use bytemuck_derive::Pod;"}],"quickstart":{"code":"use bytemuck_derive::Pod;\n\n#[derive(Pod)]\nstruct MyStruct {\n    x: u32,\n    y: u32,\n}\n\nfn main() {\n    let s = MyStruct { x: 1, y: 2 };\n    println!(\"Size: {}\", std::mem::size_of_val(&s));\n}","lang":"rust","description":"Derives the Pod trait for a struct to enable safe byte casting."},"warnings":[],"env_vars":null,"search_vec":"'bytemuck':1,7,16 'cast':11,17 'crate':8 'deriv':2,3,14 'macro':4,15 'safe':10 'safeti':18 'type':13","created_at":"2026-06-17T16:59:45.217164+00:00","updated_at":"2026-06-17T16:59:45.217164+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/Lokathor/bytemuck","github":"https://github.com/Lokathor/bytemuck","docs":"https://docs.rs/bytemuck_derive/","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-17","next_check":"2026-12-14","install_tag":null}}