From 698bc701e88a1c1488ca20ef228dc85a20147b95 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 28 Oct 2021 18:11:34 +0800 Subject: [PATCH] fix(napi): export tokio_runtime only when tokio_rt feature enabled --- crates/napi/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/napi/src/lib.rs b/crates/napi/src/lib.rs index dbb2e32f..0949394a 100644 --- a/crates/napi/src/lib.rs +++ b/crates/napi/src/lib.rs @@ -158,6 +158,7 @@ macro_rules! assert_type_of { pub mod bindgen_prelude { #[cfg(feature = "compat-mode")] pub use crate::bindgen_runtime::register_module_exports; + #[cfg(feature = "tokio_rt")] pub use crate::tokio_runtime::*; pub use crate::{ assert_type_of, bindgen_runtime::*, check_status, check_status_or_throw, error, error::*, sys,