• Home
Name Date Size #Lines LOC

..--

2.27.1/06-Sep-2024-32,76926,437

benches/06-Sep-2024-226194

out/06-Sep-2024-84

patches/06-Sep-2024-1311

src/06-Sep-2024-34,79027,649

.cargo_vcs_info.jsonD06-Sep-2024102 66

Android.bpD06-Sep-20241.3 KiB5449

Cargo.tomlD06-Sep-20241.2 KiB4839

Cargo.toml.origD06-Sep-2024699 3124

LICENSED06-Sep-20241 KiB1916

LICENSE.txtD06-Sep-20241 KiB1916

METADATAD06-Sep-2024626 2422

MODULE_LICENSE_MITD06-Sep-20240

NOTICED06-Sep-20241 KiB1916

OWNERSD06-Sep-202440 21

README.mdD06-Sep-20241.2 KiB3321

TEST_MAPPINGD06-Sep-2024328 1514

build.rsD06-Sep-20242.4 KiB9476

cargo2rulesmk.jsonD06-Sep-202459 54

cargo_1.outD06-Sep-2024563 54

cargo_embargo.jsonD06-Sep-2024130 1211

regenerate.shD06-Sep-20241.3 KiB6247

rules.mkD06-Sep-2024729 2920

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