Module protobuf_native::compiler
source · Expand description
Implementation of the Protocol Buffer compiler.
This module contains code for parsing .proto files and generating code based on them. It is particularly useful when you need to deal with arbitrary Protobuf messages at runtime.
Structs§
- An implementation of
SourceTree
which loads files from locations on disk. - An error occured while loading a file.
- An error occurred while opening a file.
- Describes the location at which a
FileLoadError
occurred. - A simple implementation of
MultiFileErrorCollector
that records errors in memory for later retrieval. - An implementation of
DescriptorDatabase
which loads files from aSourceTree
and parses them. - An implementation of
SourceTree
which stores files in memory.
Enums§
- Describes the severity of a
FileLoadError
.
Traits§
- If the importer encounters problems while trying to import the proto files, it reports them to a
MultiFileErrorCollector
. - Abstract interface which represents a directory tree containing .proto files.