diff options
Diffstat (limited to 'zellij-utils/build.rs')
-rw-r--r-- | zellij-utils/build.rs | 48 |
1 files changed, 30 insertions, 18 deletions
diff --git a/zellij-utils/build.rs b/zellij-utils/build.rs index 92f89d27c..9b07cfe86 100644 --- a/zellij-utils/build.rs +++ b/zellij-utils/build.rs @@ -1,21 +1,33 @@ -use prost_build; -use std::fs; +// 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(); - 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(); + //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(); } |