summaryrefslogtreecommitdiff
path: root/cli/build.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2021-02-26 22:36:26 +0530
committerGitHub <noreply@github.com>2021-02-26 12:06:26 -0500
commit4b56537ea9d5c3e5f60ca817ed00c55dcbb2131c (patch)
tree175b10666df4af715268dc3a32306214c0a88859 /cli/build.rs
parent07eb0090445c22001ba50e71359839250c1b749a (diff)
chore: move crypto types to op_crates/crypto (#9609)
Diffstat (limited to 'cli/build.rs')
-rw-r--r--cli/build.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/build.rs b/cli/build.rs
index edc524bbc..a54bf962c 100644
--- a/cli/build.rs
+++ b/cli/build.rs
@@ -8,6 +8,7 @@ use deno_core::serde_json::json;
use deno_core::serde_json::Value;
use deno_core::JsRuntime;
use deno_core::RuntimeOptions;
+use deno_runtime::deno_crypto;
use deno_runtime::deno_fetch;
use deno_runtime::deno_web;
use deno_runtime::deno_websocket;
@@ -62,6 +63,7 @@ fn create_compiler_snapshot(
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());
+ op_crate_libs.insert("deno.crypto", deno_crypto::get_declaration());
// ensure we invalidate the build properly.
for (_, path) in op_crate_libs.iter() {
@@ -262,6 +264,10 @@ fn main() {
"cargo:rustc-env=DENO_WEBSOCKET_LIB_PATH={}",
deno_websocket::get_declaration().display()
);
+ println!(
+ "cargo:rustc-env=DENO_CRYPTO_LIB_PATH={}",
+ deno_crypto::get_declaration().display()
+ );
println!("cargo:rustc-env=TARGET={}", env::var("TARGET").unwrap());
println!("cargo:rustc-env=PROFILE={}", env::var("PROFILE").unwrap());