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/napi/lib.rs | |
parent | 2be1282be42369e558cc77f75b22488ce7a8215e (diff) |
feat(core): allow specifying name and dependencies of an Extension (#17301)
Diffstat (limited to 'ext/napi/lib.rs')
-rw-r--r-- | ext/napi/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/napi/lib.rs b/ext/napi/lib.rs index b281fb9f2..e76a08ed9 100644 --- a/ext/napi/lib.rs +++ b/ext/napi/lib.rs @@ -410,7 +410,7 @@ impl Env { } pub fn init<P: NapiPermissions + 'static>(unstable: bool) -> Extension { - Extension::builder() + Extension::builder(env!("CARGO_PKG_NAME")) .ops(vec![op_napi_open::decl::<P>()]) .event_loop_middleware(|op_state_rc, cx| { // `work` can call back into the runtime. It can also schedule an async task |