-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.rs
23 lines (22 loc) · 988 Bytes
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/// `prost_build` generates files in the output directory, which means that if we want
/// to use it, we would need the protoc compiler as a build dependency.
/// To get around this, we need run the build script and manually copy the generated files
/// into the `src` folder. To do so, uncomment the below lines, then copy the files from the
/// output directory into the `src/proto` folder. The path to the output directory
/// will be printed in the terminal.
///
fn main() {
// prost_build::compile_protos(
// &[
// "proto/signed.proto",
// "proto/package.proto",
// "proto/versions.proto",
// ],
// &["proto/"],
// )
// .expect("Failed to generate prost code from .proto files");
// println!(
// "cargo::warning=Regenerated proto files, which must be manually copied into the `src` directory. Generated files can be found in {}",
// std::env::var("OUT_DIR").unwrap_or_default()
// );
}