From c3cba7f22c49ca3a3f58df44d8ea4c85d8510bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 9 Mar 2023 08:10:54 -0400 Subject: refactor(core): Extension::builder_with_deps (#18093) Prerequisite for https://github.com/denoland/deno/pull/18080 --- ext/ffi/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/ffi') diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs index e9ce2ec2e..8a1227ed9 100644 --- a/ext/ffi/lib.rs +++ b/ext/ffi/lib.rs @@ -82,8 +82,7 @@ pub(crate) struct FfiState { } pub fn init(unstable: bool) -> Extension { - Extension::builder(env!("CARGO_PKG_NAME")) - .dependencies(vec!["deno_web"]) + Extension::builder_with_deps(env!("CARGO_PKG_NAME"), &["deno_web"]) .esm(include_js_files!("00_ffi.js",)) .ops(vec![ op_ffi_load::decl::

(), -- cgit v1.2.3