Expand description
Modules§
- manual
- This module provides utilities for generating
tonicservice stubs and clients purely in Rust without the need ofprotofiles. It also enables you to set a customCodecif you want to use a custom serialization format other thanprotobuf.
Structs§
- Builder
- Builder for configuring and generating code from
.protofiles. - Config
- Configuration options for Protobuf code generation.
- File
Descriptor Set - The protocol compiler can output a FileDescriptorSet containing the .proto files it parses.
- Tonic
Attributes - Attributes that will be added to
modandstructitems.
Constants§
- NON_
PATH_ TYPE_ ALLOWLIST - Chosen allowlist, which would be [
EXTENDED_NON_PATH_TYPE_ALLOWLIST] ifBuilder::with_extended_rust_typeswas called.
Traits§
- Tonic
Method - Method generation trait.
- Tonic
Service - Service generation trait.
Functions§
- compile_
fds - Simple file descriptor set compiling. Use
configureinstead if you need more options. - compile_
protos - Simple
.protocompiling. Useconfigureinstead if you need more options. - configure
- Configure
tonic-prost-buildcode generation.