Crates.io | protobuf |
lib.rs | protobuf |
version | 3.7.1 |
source | src |
created_at | 2014-11-21 00:30:41.855088 |
updated_at | 2024-10-15 21:15:01.937218 |
description | Rust implementation of Google protocol buffers |
homepage | https://github.com/stepancheg/rust-protobuf/ |
repository | https://github.com/stepancheg/rust-protobuf/ |
max_upload_size | |
id | 198 |
size | 1,327,219 |
This crate has one feature, which is with-bytes
.
with-bytes
enables protobuf
crate support for
bytes
crate:
when parsing bytes or strings from bytes::Bytes
,
protobuf
will be able to reference the input instead of allocating subarrays.
Note, codegen also need to be instructed to generate Bytes
or Chars
for
bytes
or string
protobuf types instead of default Vec<u8>
or String
,
just enabling option on this crate is not enough.
See Customize
struct in protobuf-codegen
crate.
protobuf-json-mapping
implements JSON parsing and serialization for protobuf messages.protobuf-codegen
can be used to generate rust code from .proto
crates.protoc-bin-vendored
contains protoc
command packed into the crate.protobuf-parse
contains
.proto
file parser. Rarely need to be used directly,
but can be used for mechanical processing of .proto
files.