extern crate bindgen;

fn main() {
    let proto_files = ["proto/tunnel.proto3"];

    // Compile & gen protobuf code
    prost_build::compile_protos(&proto_files, &["proto"]).expect("Couldn't build protobuf files");

    proto_files
        .iter()
        .for_each(|proto_file| println!("cargo:rerun-if-changed={proto_file}"));
}
