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/crypto/lib.rs | |
parent | 2be1282be42369e558cc77f75b22488ce7a8215e (diff) |
feat(core): allow specifying name and dependencies of an Extension (#17301)
Diffstat (limited to 'ext/crypto/lib.rs')
-rw-r--r-- | ext/crypto/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/crypto/lib.rs b/ext/crypto/lib.rs index d5a83b5ec..cbcb816d9 100644 --- a/ext/crypto/lib.rs +++ b/ext/crypto/lib.rs @@ -73,7 +73,8 @@ use crate::key::HkdfOutput; use crate::shared::RawKeyData; pub fn init(maybe_seed: Option<u64>) -> Extension { - Extension::builder() + Extension::builder(env!("CARGO_PKG_NAME")) + .dependencies(vec!["deno_webidl", "deno_web"]) .js(include_js_files!( prefix "deno:ext/crypto", "00_crypto.js", |