pub enum BundleError {
SourceNotFound(PathBuf),
NoProtoFiles(PathBuf),
Conflict {
import_path: String,
n: usize,
roots: Vec<PathBuf>,
},
MissingImports(Vec<MissingImport>),
Compile(String),
Decode(String),
Io {
path: PathBuf,
source: Error,
},
}Expand description
Anything that can go wrong resolving, deduping, compiling, or rendering a proto source into a bundle.
Variants§
SourceNotFound(PathBuf)
The <SOURCE> path does not exist.
NoProtoFiles(PathBuf)
Resolution found no .proto files under the source.
Conflict
The same import path resolves to files with differing content under
different include roots — refused rather than silently picking one
(override with on_conflict = FirstWins).
MissingImports(Vec<MissingImport>)
One or more import statements reference files that are not present under
any include root (and are not Google well-known types). Every unresolved
import is listed so the operator can supply them in one pass — e.g. by
pointing --include-root at the repo that contains them.
Compile(String)
protox failed to parse/resolve/compile the staged sources.
Decode(String)
The compiled FileDescriptorSet bytes did not decode.
Io
A filesystem operation (staging copy, output write) failed.