]> git.lizzy.rs Git - connect-rs.git/blob - build.rs
Merge branch 'main' of github.com:sachanganesh/connect-rs into main
[connect-rs.git] / build.rs
1 use std::env;
2
3 fn main() -> Result<(), Box<dyn std::error::Error>> {
4     if Ok("dev".to_owned()) == env::var("PROFILE") {
5         protobuf_codegen_pure::Codegen::new()
6             .out_dir("src/schema")
7             .inputs(&["schema/message.proto"])
8             .include("schema")
9             .run()
10             .expect("Codegen failed.");
11     }
12
13     Ok(())
14 }