From 53fe4d3aa5efdc4f5f3171d8018c280a5cc79dbe Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 3 Dec 2021 16:31:34 +0800 Subject: [PATCH] feat(napi): re-export ctor as module_init --- crates/napi/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/napi/src/lib.rs b/crates/napi/src/lib.rs index 82ec5609..abe3a012 100644 --- a/crates/napi/src/lib.rs +++ b/crates/napi/src/lib.rs @@ -183,6 +183,8 @@ pub(crate) unsafe fn log_js_value>( ); } +pub use crate::bindgen_runtime::ctor as module_init; + pub mod bindgen_prelude { #[cfg(feature = "compat-mode")] pub use crate::bindgen_runtime::register_module_exports;