{"id":57201,"library":"parity-scale-codec","title":"Parity SCALE Codec","description":"SCALE (Simple Concatenating Aggregated Little Endians) codec for Rust, used in Substrate-based blockchains.","status":"active","version":"3.7.5","language":"rust","source_language":null,"source_url":"https://github.com/paritytech/parity-scale-codec","tags":["codec","scale","substrate","blockchain","serialization"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nparity-scale-codec = \"3.7.5\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add parity-scale-codec","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Encode","correct":"use parity_scale_codec::{Encode, Decode};"}],"quickstart":{"code":"use parity_scale_codec::{Encode, Decode};\n\n#[derive(Encode, Decode)]\nstruct MyStruct {\n    field: u32,\n}\n\nfn main() {\n    let val = MyStruct { field: 42 };\n    let encoded = val.encode();\n    let decoded = MyStruct::decode(&mut &encoded[..]).unwrap();\n    println!(\"{:?}\", decoded.field);\n}","lang":"rust","description":"Derive Encode/Decode for a struct and round-trip encode/decode."},"warnings":[],"env_vars":null,"search_vec":"'aggreg':7 'base':17 'blockchain':18,22 'codec':3,10,19 'concaten':6 'endian':9 'littl':8 'pariti':1 'rust':12 'scale':2,4,20 'serial':23 'simpl':5 'substrat':16,21 'substrate-bas':15 'use':13","created_at":"2026-06-16T15:32:56.047789+00:00","updated_at":"2026-06-16T15:32:56.047789+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-scale-codec","github":"https://github.com/paritytech/parity-scale-codec","docs":"https://docs.rs/parity-scale-codec/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization","other"],"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}}