{"id":57217,"library":"static-assertions","title":"Static Assertions","description":"Compile-time assertions to ensure that invariants are met, such as type sizes or alignment.","status":"active","version":"1.1.0","language":"rust","source_language":null,"source_url":"https://github.com/nvzqz/static-assertions-rs","tags":["compile-time","assertions","static","type-safety"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nstatic_assertions = \"1.1.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add static_assertions","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"assert_eq_size","correct":"use static_assertions::assert_eq_size;"}],"quickstart":{"code":"use static_assertions::assert_eq_size;\n\nassert_eq_size!([u8; 4], u32);\n\nfn main() {\n    println!(\"Compile-time assertion passed\");\n}","lang":"rust","description":"Asserts that two types have the same size at compile time."},"warnings":[],"env_vars":null,"search_vec":"'align':18 'assert':2,6,22 'compil':4,20 'compile-tim':3,19 'ensur':8 'invari':10 'met':12 'safeti':26 'size':16 'static':1,23 'time':5,21 'type':15,25 'type-safeti':24","created_at":"2026-06-16T15:33:21.263178+00:00","updated_at":"2026-06-16T15:33:21.263178+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/nvzqz/static-assertions-rs","github":"https://github.com/nvzqz/static-assertions-rs","docs":"https://docs.rs/static_assertions/","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}}