{"id":67832,"library":"scale-decode","title":"Scale Decode","description":"Decode SCALE encoded bytes into arbitrary types at runtime","status":"active","version":"0.16.2","language":"rust","source_language":null,"source_url":"https://github.com/paritytech/scale-decode","tags":["scale","decoding","substrate","parity"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nscale-decode = \"0.16.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add scale-decode","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"DecodeAsType","correct":"use scale_decode::DecodeAsType;"}],"quickstart":{"code":"use scale_decode::DecodeAsType;\n\nfn main() {\n    let bytes = vec![0x00];\n    let val: u8 = DecodeAsType::decode_as_type(&mut &bytes[..], &()).unwrap();\n    println!(\"{}\", val);\n}","lang":"rust","description":"Decode SCALE bytes into a u8 value"},"warnings":[{"fix":"Refer to Substrate documentation for SCALE encoding details","message":"Requires understanding of SCALE encoding format","severity":"gotcha","affected_versions":">=0.16.0"}],"env_vars":null,"search_vec":"'arbitrari':8 'byte':6 'decod':2,3,13 'encod':5 'pariti':15 'runtim':11 'scale':1,4,12 'substrat':14 'type':9","created_at":"2026-06-17T17:42:19.074306+00:00","updated_at":"2026-06-17T17:42:19.074306+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://www.parity.io/","github":"https://github.com/paritytech/scale-decode","docs":"https://docs.rs/scale-decode/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"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}}