1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-19 22:06:21 -05:00
denoland-deno/test_util/build.rs
Heyang Zhou 6d4a005e41
feat(ext/kv): connect to remote database (#20178)
This patch adds a `remote` backend for `ext/kv`. This supports
connection to Deno Deploy and potentially other services compatible with
the KV Connect protocol.
2023-08-22 13:56:00 +08:00

22 lines
538 B
Rust

// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
use std::env;
use std::io;
use std::path::PathBuf;
fn main() -> io::Result<()> {
println!("cargo:rerun-if-changed=../ext/kv/proto");
let descriptor_path =
PathBuf::from(env::var("OUT_DIR").unwrap()).join("proto_descriptor.bin");
prost_build::Config::new()
.file_descriptor_set_path(&descriptor_path)
.compile_well_known_types()
.compile_protos(
&["../ext/kv/proto/datapath.proto"],
&["../ext/kv/proto/"],
)?;
Ok(())
}