{"id":57156,"library":"prost","title":"Prost","description":"A Protocol Buffers implementation for Rust, generating efficient serialization and deserialization code.","status":"active","version":"0.14.4","language":"rust","source_language":null,"source_url":"https://github.com/tokio-rs/prost","tags":["protobuf","serialization","protocol-buffers","codegen"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nprost = \"0.14.4\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add prost","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Message","correct":"use prost::Message;"}],"quickstart":{"code":"use prost::Message;\n\n#[derive(Message)]\nstruct MyMessage {\n    #[prost(int32, tag = \"1\")]\n    id: i32,\n}\n\nlet msg = MyMessage { id: 42 };\nlet encoded = msg.encode_to_vec();\nlet decoded = MyMessage::decode(&*encoded).unwrap();\nassert_eq!(decoded.id, 42);","lang":"rust","description":"Defines a protobuf message and encodes/decodes it."},"warnings":[{"fix":"Install protoc or use the prost-build crate with a build script.","message":"Prost requires a protobuf compiler (protoc) to generate code from .proto files unless using the derive macro.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'buffer':4,18 'code':13 'codegen':19 'deseri':12 'effici':9 'generat':8 'implement':5 'prost':1 'protobuf':14 'protocol':3,17 'protocol-buff':16 'rust':7 'serial':10,15","created_at":"2026-06-16T15:30:31.800835+00:00","updated_at":"2026-06-16T15:30:31.800835+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/tokio-rs/prost","github":"https://github.com/tokio-rs/prost","docs":"https://docs.rs/prost/","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-16","next_check":"2026-12-13","install_tag":null}}