Files
David Pedersen e82f0b0399 build: generate root crate paths correctly (#623)
We shouldn't append `proto_path` (`super` by default) if the path starts
with `crate::`.

Fixes https://github.com/hyperium/tonic/issues/548
2021-06-02 16:58:43 +02:00

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(())
}