13 lines
301 B
Rust
13 lines
301 B
Rust
|
fn main() {
|
||
|
#[cfg(feature = "codegen")]
|
||
|
{
|
||
|
protobuf_codegen::Codegen::new()
|
||
|
.pure()
|
||
|
.includes(&["src"])
|
||
|
.input("src/api.proto")
|
||
|
.input("src/api_options.proto")
|
||
|
.out_dir("src/generated")
|
||
|
.run_from_script();
|
||
|
}
|
||
|
}
|