diff options
author | crowlKats <13135287+crowlKats@users.noreply.github.com> | 2021-05-10 12:02:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-10 12:02:47 +0200 |
commit | dfe528198d363ebc883da84dc816bce112ecd24b (patch) | |
tree | dfa0e67521a5b0a968b57514aa02fc8f114d4132 /cli/build.rs | |
parent | 32ad8f77d68df04e26ecaed71bdd8d37f048218a (diff) |
feat: add WebStorage API (#7819)
This commit introduces localStorage and sessionStorage.
Diffstat (limited to 'cli/build.rs')
-rw-r--r-- | cli/build.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/build.rs b/cli/build.rs index eb8a71c8c..116ce8167 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -16,6 +16,7 @@ use deno_runtime::deno_url; use deno_runtime::deno_web; use deno_runtime::deno_webgpu; use deno_runtime::deno_websocket; +use deno_runtime::deno_webstorage; use regex::Regex; use std::collections::HashMap; use std::env; @@ -71,6 +72,7 @@ fn create_compiler_snapshot( op_crate_libs.insert("deno.fetch", deno_fetch::get_declaration()); op_crate_libs.insert("deno.webgpu", deno_webgpu::get_declaration()); op_crate_libs.insert("deno.websocket", deno_websocket::get_declaration()); + op_crate_libs.insert("deno.webstorage", deno_webstorage::get_declaration()); op_crate_libs.insert("deno.crypto", deno_crypto::get_declaration()); // ensure we invalidate the build properly. @@ -291,6 +293,10 @@ fn main() { deno_websocket::get_declaration().display() ); println!( + "cargo:rustc-env=DENO_WEBSTORAGE_LIB_PATH={}", + deno_webstorage::get_declaration().display() + ); + println!( "cargo:rustc-env=DENO_CRYPTO_LIB_PATH={}", deno_crypto::get_declaration().display() ); |