{"id":74548,"library":"aligned-sized","title":"Aligned Sized","description":"A macro which ensures the alignment and calculates the size of a struct","status":"active","version":"1.1.0","language":"rust","source_language":null,"source_url":"https://github.com/Lightprotocol/light-protocol","tags":["macro","alignment","size","struct"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\naligned-sized = \"1.1.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add aligned-sized","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"AlignedSized","correct":"use aligned_sized::AlignedSized;"}],"quickstart":{"code":"use aligned_sized::AlignedSized;\n\n#[derive(AlignedSized)]\nstruct MyStruct {\n    a: u8,\n    b: u32,\n}\n\nfn main() {\n    println!(\"Size: {}\", MyStruct::SIZE);\n}","lang":"rust","description":"Derives AlignedSized to get alignment and size."},"warnings":[],"env_vars":null,"search_vec":"'align':1,8,17 'calcul':10 'ensur':6 'macro':4,16 'size':2,12,18 'struct':15,19","created_at":"2026-06-17T19:05:08.092485+00:00","updated_at":"2026-06-17T19:05:08.092485+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/Lightprotocol/light-protocol","github":"https://github.com/Lightprotocol/light-protocol","docs":"https://docs.rs/aligned-sized/","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}}