diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-09 22:05:46 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-09 22:05:46 +0200 |
| commit | 92a8fd40209c5595475fb0288741d0347fe244c4 (patch) | |
| tree | bc6a275c32bfe9f71dc98bd39146c82938631c82 /crates/client/build.rs | |
| parent | chore: Add more things (diff) | |
| download | atuin-92a8fd40209c5595475fb0288741d0347fe244c4.zip | |
chore: Move more stuff out of atuin-client
Diffstat (limited to 'crates/client/build.rs')
| -rw-r--r-- | crates/client/build.rs | 28 |
1 files changed, 0 insertions, 28 deletions
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(()) } |
