From 00e63306cbcc295a87ba662f9f63311a3c6c49ce Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 6 Apr 2021 12:55:05 +0200 Subject: refactor: add deno_file op crate (#10019) Also enables WPT for FileReader. --- cli/build.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/build.rs') 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()); @@ -270,6 +272,10 @@ fn main() { "cargo:rustc-env=DENO_WEB_LIB_PATH={}", 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() -- cgit v1.2.3