• Home
Name Date Size #Lines LOC

..--

2.27.1/03-May-2024-32,74926,426

benches/03-May-2024-226194

out/03-May-2024-84

src/03-May-2024-34,79027,649

.cargo_vcs_info.jsonD03-May-2024102 66

Android.bpD03-May-20241.2 KiB5449

Cargo.tomlD03-May-20241.2 KiB4839

Cargo.toml.origD03-May-2024699 3124

LICENSED03-May-20241 KiB1916

LICENSE.txtD03-May-20241 KiB1916

METADATAD03-May-2024626 2422

MODULE_LICENSE_MITD03-May-20240

NOTICED03-May-20241 KiB1916

OWNERSD03-May-202440 21

README.mdD03-May-20241.2 KiB3321

TEST_MAPPINGD03-May-2024328 1514

build.rsD03-May-20242.4 KiB9476

cargo2android.jsonD03-May-2024221 1312

cargo_1.outD03-May-2024563 54

regenerate.shD03-May-20241.3 KiB6247

README.md

1<!-- cargo-sync-readme start -->
2
3# Library to read and write protocol buffers data
4
5## Features
6
7This crate has one feature, which is `with-bytes`.
8
9`with-bytes` enables `protobuf` crate support for
10[`bytes` crate](https://github.com/tokio-rs/bytes):
11when parsing bytes or strings from `bytes::Bytes`,
12`protobuf` will be able to reference the input instead of allocating subarrays.
13
14Note, codegen also need to be instructed to generate `Bytes` or `Chars` for
15`bytes` or `string` protobuf types instead of default `Vec<u8>` or `String`,
16just enabling option on this crate is not enough.
17
18See `Customize` struct in [`protobuf-codegen` crate](https://docs.rs/protobuf-codegen).
19
20## Accompanying crates
21
22* [`protobuf-json-mapping`](https://docs.rs/protobuf-json-mapping)
23  implements JSON parsing and serialization for protobuf messages.
24* [`protobuf-codegen`](https://docs.rs/protobuf-codegen)
25  can be used to rust code from `.proto` crates.
26* [`protoc-bin-vendored`](https://docs.rs/protoc-bin-vendored)
27  contains `protoc` command packed into the crate.
28* [`protobuf-parse`](https://docs.rs/protobuf-parse) contains
29  `.proto` file parser. Rarely need to be used directly,
30  but can be used for mechanical processing of `.proto` files.
31
32<!-- cargo-sync-readme end -->
33