diff options
Diffstat (limited to 'cli/build.rs')
-rw-r--r-- | cli/build.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/build.rs b/cli/build.rs index 7ed947f4e..d969a3415 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -16,6 +16,7 @@ fn create_snapshot( files: Vec<PathBuf>, ) { deno_web::init(&mut isolate); + deno_fetch::init(&mut isolate); // TODO(nayeemrmn): https://github.com/rust-lang/cargo/issues/3946 to get the // workspace root. let display_root = Path::new(env!("CARGO_MANIFEST_DIR")).parent().unwrap(); @@ -53,6 +54,10 @@ fn create_compiler_snapshot( custom_libs .insert("lib.deno.web.d.ts".to_string(), deno_web::get_declaration()); custom_libs.insert( + "lib.deno.fetch.d.ts".to_string(), + deno_fetch::get_declaration(), + ); + custom_libs.insert( "lib.deno.window.d.ts".to_string(), cwd.join("dts/lib.deno.window.d.ts"), ); @@ -112,6 +117,10 @@ fn main() { "cargo:rustc-env=DENO_WEB_LIB_PATH={}", deno_web::get_declaration().display() ); + println!( + "cargo:rustc-env=DENO_FETCH_LIB_PATH={}", + deno_fetch::get_declaration().display() + ); println!( "cargo:rustc-env=TARGET={}", |