mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
fix(napi): export tokio_runtime only when tokio_rt feature enabled
This commit is contained in:
parent
813d671d76
commit
698bc701e8
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user