• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

benches/25-Apr-2025-226194

out/25-Apr-2025-84

src/25-Apr-2025-34,79027,649

.cargo-checksum.jsonD25-Apr-202512.1 KiB11

Android.bpD25-Apr-20251.1 KiB4742

Cargo.tomlD25-Apr-20251.2 KiB4839

LICENSED25-Apr-20251 KiB1916

LICENSE.txtD25-Apr-20251 KiB1916

METADATAD25-Apr-2025385 1817

MODULE_LICENSE_MITD25-Apr-20250

NOTICED25-Apr-20251 KiB1916

README.mdD25-Apr-20251.2 KiB3321

TEST_MAPPINGD25-Apr-2025328 1514

build.rsD25-Apr-20252.4 KiB9476

cargo_embargo.jsonD25-Apr-2025130 1211

regenerate.shD25-Apr-20251.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