summaryrefslogtreecommitdiff
path: root/cli/build.rs
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-01-06 16:57:28 +0100
committerGitHub <noreply@github.com>2021-01-06 16:57:28 +0100
commit2e18fcebcc2ee931ee952ac2fe2175d6ec7acf69 (patch)
tree352e53d98cd46604e7661ba26df51dc9c0498b2a /cli/build.rs
parent1959aca2a978642b73ea815b9b89dd3219830cef (diff)
refactor: move WebSocket API to an op_crate (#9026)
Diffstat (limited to 'cli/build.rs')
-rw-r--r--cli/build.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/build.rs b/cli/build.rs
index 45221281f..71abfbd83 100644
--- a/cli/build.rs
+++ b/cli/build.rs
@@ -57,6 +57,7 @@ fn create_compiler_snapshot(
let mut op_crate_libs = HashMap::new();
op_crate_libs.insert("deno.web", deno_web::get_declaration());
op_crate_libs.insert("deno.fetch", deno_fetch::get_declaration());
+ op_crate_libs.insert("deno.websocket", deno_websocket::get_declaration());
// ensure we invalidate the build properly.
for (_, path) in op_crate_libs.iter() {
@@ -245,6 +246,10 @@ fn main() {
"cargo:rustc-env=DENO_FETCH_LIB_PATH={}",
deno_fetch::get_declaration().display()
);
+ println!(
+ "cargo:rustc-env=DENO_WEBSOCKET_LIB_PATH={}",
+ deno_websocket::get_declaration().display()
+ );
println!("cargo:rustc-env=TARGET={}", env::var("TARGET").unwrap());
println!("cargo:rustc-env=PROFILE={}", env::var("PROFILE").unwrap());