diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-01-08 23:48:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-08 23:48:46 +0100 |
commit | c41d4ff90e09b63bd1894052352a5acba57b1704 (patch) | |
tree | 52be95551ed263c2f4831aaefc78bb6fdda6d89c /ext/cache/lib.rs | |
parent | 2be1282be42369e558cc77f75b22488ce7a8215e (diff) |
feat(core): allow specifying name and dependencies of an Extension (#17301)
Diffstat (limited to 'ext/cache/lib.rs')
-rw-r--r-- | ext/cache/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/cache/lib.rs b/ext/cache/lib.rs index 50a07b255..c48b7cda4 100644 --- a/ext/cache/lib.rs +++ b/ext/cache/lib.rs @@ -26,7 +26,8 @@ pub struct CreateCache<C: Cache + 'static>(pub Arc<dyn Fn() -> C>); pub fn init<CA: Cache + 'static>( maybe_create_cache: Option<CreateCache<CA>>, ) -> Extension { - Extension::builder() + Extension::builder(env!("CARGO_PKG_NAME")) + .dependencies(vec!["deno_webidl", "deno_web", "deno_url", "deno_fetch"]) .js(include_js_files!( prefix "deno:ext/cache", "01_cache.js", |