mystuff/net/gurk-rs/files/vendor/libsignal-protocol/build.rs

19 lines
488 B
Rust
Raw Normal View History

2022-10-31 22:01:15 +01:00
//
// Copyright 2020 Signal Messenger, LLC.
// SPDX-License-Identifier: AGPL-3.0-only
//
fn main() {
let protos = [
"src/proto/fingerprint.proto",
"src/proto/sealed_sender.proto",
"src/proto/service.proto",
"src/proto/storage.proto",
"src/proto/wire.proto",
];
prost_build::compile_protos(&protos, &["src"]).expect("Protobufs in src are valid");
for proto in &protos {
println!("cargo:rerun-if-changed={}", proto);
}
}