diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-04-06 12:55:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 12:55:05 +0200 |
commit | 00e63306cbcc295a87ba662f9f63311a3c6c49ce (patch) | |
tree | 88020a85a0f1d64803841386d2c5711b7ee008dc /cli/build.rs | |
parent | ff5d072702aee52882787ea85dd73573a8f8f316 (diff) |
refactor: add deno_file op crate (#10019)
Also enables WPT for FileReader.
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 6606242e2..1b1e913d2 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -11,6 +11,7 @@ use deno_core::RuntimeOptions; use deno_runtime::deno_console; use deno_runtime::deno_crypto; use deno_runtime::deno_fetch; +use deno_runtime::deno_file; use deno_runtime::deno_url; use deno_runtime::deno_web; use deno_runtime::deno_webgpu; @@ -66,6 +67,7 @@ fn create_compiler_snapshot( op_crate_libs.insert("deno.console", deno_console::get_declaration()); op_crate_libs.insert("deno.url", deno_url::get_declaration()); op_crate_libs.insert("deno.web", deno_web::get_declaration()); + op_crate_libs.insert("deno.file", deno_file::get_declaration()); 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()); @@ -271,6 +273,10 @@ fn main() { deno_web::get_declaration().display() ); println!( + "cargo:rustc-env=DENO_FILE_LIB_PATH={}", + deno_file::get_declaration().display() + ); + println!( "cargo:rustc-env=DENO_FETCH_LIB_PATH={}", deno_fetch::get_declaration().display() ); |