diff --git a/flutter_package/example/native/hub/src/common.rs b/flutter_package/example/native/hub/src/common.rs index 46bd732f..b312b827 100644 --- a/flutter_package/example/native/hub/src/common.rs +++ b/flutter_package/example/native/hub/src/common.rs @@ -1,6 +1,6 @@ // `tokio_with_wasm` enables `tokio` code // to run directly on the web. -use tokio_with_wasm::alias as tokio; +pub use tokio_with_wasm::alias as tokio; /// This `Result` type alias unifies the error type. /// Building an app differs from writing a library, diff --git a/flutter_package/example/native/hub/src/lib.rs b/flutter_package/example/native/hub/src/lib.rs index 68341941..0588ec64 100644 --- a/flutter_package/example/native/hub/src/lib.rs +++ b/flutter_package/example/native/hub/src/lib.rs @@ -7,6 +7,7 @@ mod messages; mod sample_functions; use common::*; +use tokio_with_wasm::alias as tokio; rinf::write_interface!();