You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
1 year ago | |
|---|---|---|
| .. | ||
| 2.27.1 | 1 year ago | |
| benches | 1 year ago | |
| out | 1 year ago | |
| src | 1 year ago | |
| .cargo_vcs_info.json | 1 year ago | |
| Android.bp | 1 year ago | |
| Cargo.toml | 1 year ago | |
| Cargo.toml.orig | 1 year ago | |
| LICENSE | 1 year ago | |
| LICENSE.txt | 1 year ago | |
| METADATA | 1 year ago | |
| MODULE_LICENSE_MIT | 1 year ago | |
| NOTICE | 1 year ago | |
| OWNERS | 1 year ago | |
| README.md | 1 year ago | |
| TEST_MAPPING | 1 year ago | |
| build.rs | 1 year ago | |
| cargo2android.json | 1 year ago | |
| cargo_1.out | 1 year ago | |
| regenerate.sh | 1 year ago | |
README.md
Library to read and write protocol buffers data
Features
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.
Accompanying crates
protobuf-json-mappingimplements JSON parsing and serialization for protobuf messages.protobuf-codegencan be used to rust code from.protocrates.protoc-bin-vendoredcontainsprotoccommand packed into the crate.protobuf-parsecontains.protofile parser. Rarely need to be used directly, but can be used for mechanical processing of.protofiles.