mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
* fix(napi): ensure tokio runtime is initialized for dlopen Fixes async functions panic when using nodejs dlopen by ensuring the tokio runtime is properly initialized before accessing it. When modules are loaded via dlopen instead of require, the runtime initialization might not happen through the normal module registration path. This fix adds start_async_runtime() calls to all runtime access functions to handle this scenario. Fixes #2847 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Fix * Fix * Remove * cargo check * fix for wasm --------- Co-authored-by: Claude <noreply@anthropic.com>