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/webstorage | |
| parent | 2be1282be42369e558cc77f75b22488ce7a8215e (diff) | |
feat(core): allow specifying name and dependencies of an Extension (#17301)
Diffstat (limited to 'ext/webstorage')
| -rw-r--r-- | ext/webstorage/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/webstorage/lib.rs b/ext/webstorage/lib.rs index 5425edc04..53175f196 100644 --- a/ext/webstorage/lib.rs +++ b/ext/webstorage/lib.rs @@ -22,7 +22,8 @@ struct OriginStorageDir(PathBuf); const MAX_STORAGE_BYTES: u32 = 10 * 1024 * 1024; pub fn init(origin_storage_dir: Option<PathBuf>) -> Extension { - Extension::builder() + Extension::builder(env!("CARGO_PKG_NAME")) + .dependencies(vec!["deno_webidl"]) .js(include_js_files!( prefix "deno:ext/webstorage", "01_webstorage.js", |
