fix(napi): export tokio_runtime only when tokio_rt feature enabled

This commit is contained in:
LongYinan 2021-10-28 18:11:34 +08:00
parent 813d671d76
commit 698bc701e8

View file

@ -158,6 +158,7 @@ macro_rules! assert_type_of {
pub mod bindgen_prelude { pub mod bindgen_prelude {
#[cfg(feature = "compat-mode")] #[cfg(feature = "compat-mode")]
pub use crate::bindgen_runtime::register_module_exports; pub use crate::bindgen_runtime::register_module_exports;
#[cfg(feature = "tokio_rt")]
pub use crate::tokio_runtime::*; pub use crate::tokio_runtime::*;
pub use crate::{ pub use crate::{
assert_type_of, bindgen_runtime::*, check_status, check_status_or_throw, error, error::*, sys, assert_type_of, bindgen_runtime::*, check_status, check_status_or_throw, error, error::*, sys,