summaryrefslogtreecommitdiffstats
path: root/zellij-utils/build.rs
blob: 9b07cfe86f650bad110f53f33e3d76147d59677e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// NOTE: This build script is currently out of order.
// Refer to [the PR introducing this change][1] to learn more about the reasons.
// TL;DR: The build script doesn't work during a `cargo publish --dry-run` and to ensure we can
//        make a release, we decided to temporarily disable it.
//
// [1]: https://github.com/zellij-org/zellij/pull/2711#issuecomment-1695015818

//use prost_build;
//use std::fs;

fn main() {
    //let mut prost_build = prost_build::Config::new();
    //let out_dir = concat!(env!("CARGO_MANIFEST_DIR"), "/assets/prost");
    //let out_dir = std::path::Path::new(out_dir);

    //std::fs::create_dir_all(out_dir).unwrap();
    //prost_build.out_dir(out_dir);
    //prost_build.include_file("generated_plugin_api.rs");
    //let mut proto_files = vec![];
    //for entry in fs::read_dir("src/plugin_api").unwrap() {
    //    let entry_path = entry.unwrap().path();
    //    if entry_path.is_file() {
    //        if let Some(extension) = entry_path.extension() {
    //            if extension == "proto" {
    //                proto_files.push(entry_path.display().to_string())
    //            }
    //        }
    //    }
    //}
    //prost_build
    //    .compile_protos(&proto_files, &["src/plugin_api"])
    //    .unwrap();
}