e82f0b0399
We shouldn't append `proto_path` (`super` by default) if the path starts with `crate::`. Fixes https://github.com/hyperium/tonic/issues/548
8 lines
201 B
Rust
8 lines
201 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
tonic_build::configure()
|
|
.extern_path(".foo.bar.baz.Animal", "crate::Animal")
|
|
.compile(&["foo.proto"], &["."])?;
|
|
|
|
Ok(())
|
|
}
|