{"id":58963,"library":"fixed-hash","title":"Fixed Hash","description":"Macros to define custom fixed-size hash types","status":"active","version":"0.8.0","language":"rust","source_language":null,"source_url":"https://github.com/paritytech/parity-common","tags":["hash","macro","fixed-size","ethereum"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nfixed-hash = \"0.8.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add fixed-hash","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"construct_fixed_hash","correct":"use fixed_hash::construct_fixed_hash;"}],"quickstart":{"code":"use fixed_hash::construct_fixed_hash;\n\nconstruct_fixed_hash! { pub struct H256(32); }\n\nfn main() {\n    let hash = H256::zero();\n    println!(\"{:?}\", hash);\n}","lang":"rust","description":"Define a custom fixed-size hash type"},"warnings":[],"env_vars":null,"search_vec":"'custom':6 'defin':5 'ethereum':17 'fix':1,8,15 'fixed-s':7,14 'hash':2,10,12 'macro':3,13 'size':9,16 'type':11","created_at":"2026-06-16T16:45:18.642197+00:00","updated_at":"2026-06-16T16:45:18.642197+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/paritytech/parity-common","github":"https://github.com/paritytech/parity-common","docs":"https://docs.rs/fixed-hash/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["crypto","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}}