From 92a8fd40209c5595475fb0288741d0347fe244c4 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 9 Jul 2026 22:05:46 +0200 Subject: chore: Move more stuff out of atuin-client --- crates/client/build.rs | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'crates/client/build.rs') diff --git a/crates/client/build.rs b/crates/client/build.rs index ad4bc3c8..17a532cc 100644 --- a/crates/client/build.rs +++ b/crates/client/build.rs @@ -16,33 +16,5 @@ fn main() -> Result<(), std::io::Error> { println!("cargo:rustc-env=GIT_HASH={sha}"); } - { - let proto_paths = [ - "proto/history.proto", - "proto/search.proto", - "proto/control.proto", - "proto/semantic.proto", - ]; - let proto_include_dirs = ["proto"]; - - let file_descriptor_set = Compiler::new(proto_include_dirs) - .map_err(std::io::Error::other)? - .include_source_info(true) - .include_imports(true) - .open_files(proto_paths) - .map_err(std::io::Error::other)? - .file_descriptor_set(); - - let file_descriptor_path = PathBuf::from(env::var_os("OUT_DIR").expect("OUT_DIR not set")) - .join("file_descriptor_set.bin"); - fs::write(&file_descriptor_path, file_descriptor_set.encode_to_vec()).unwrap(); - - tonic_prost_build::configure() - .build_server(true) - .file_descriptor_set_path(&file_descriptor_path) - .skip_protoc_run() - .compile_protos(&proto_paths, &proto_include_dirs)?; - } - Ok(()) } -- cgit v1.3.1