{"repo":"tokio-rs/prost","free":true,"listed":false,"github":"https://github.com/tokio-rs/prost","clone":"git clone https://github.com/tokio-rs/prost.git","description":"PROST! a Protocol Buffers implementation for the Rust Language","language":"Rust","stars":4741,"topics":["protobuf","rust"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"PROST! prost is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files. Compared to other Protocol Buffers implementations, prost Generates simple, idiomatic, and readable Rust types by taking advantage of Rust derive attributes. Retains comments from .proto files in generated Rust code. Allows existing Rust types (not generated from a .proto ) to be serialized and deserialized by adding attributes. Uses the bytes::{Buf, BufMut} abstractions for serialization instead of std::io::{Read, Write} . Respects the Protobuf package specifier when organizing generated code into Rust modules. Preserves unknown enum values during deserialization. Does not include support for runtime reflection or message descriptors. Using prost in a Cargo Project First, add prost and its public dependencies to your Cargo.toml : The recommended way to add .proto compilation to a Cargo project is to use the prost-build library. See the [ prost-build documentation][prost-build] for more details and examples. See the [snazzy repository][snazzy] for a simple start-to-finish example. [prost-build]: https://docs.rs/prost-build/latest/prost build/ [snazzy]: https://github.com/danburkert/snazzy MSRV prost will keep a rolling MSRV (minimum supported rust version) policy of at least 6 months. When increasing the MSRV, the new Rust version must have been released at least six months ago. The current MSRV is 1.85. Generated Code prost genera","default_branch":null,"files":null,"tree":[],"storefront":"/r/tokio-rs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tokio-rs/prost/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}