Compatibility with wasm
amiyatulu opened this issue · 4 comments
Can megalodon-rs support wasm so that it can used by rust framework like yew?
duplicated
Still it doesn't support error
megalodon= {version="0.11.8"}
error[E0432]: unresolved import crate::sys::IoSourceState
--> /home/amiya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/io_source.rs:12:5
|
12 | use crate::sys::IoSourceState;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ no IoSourceState
in sys
error[E0432]: unresolved import crate::sys::tcp
--> /home/amiya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/listener.rs:15:17
|
15 | use crate::sys::tcp::{bind, listen, new_for_addr};
| ^^^ could not find tcp
in sys
error[E0432]: unresolved import crate::sys::tcp
--> /home/amiya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/net/tcp/stream.rs:13:17
|
13 | use crate::sys::tcp::{connect, new_for_addr};
| ^^^ could not find tcp
in sys
error[E0433]: failed to resolve: could not find Selector
in sys
--> /home/amiya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/poll.rs:312:18
|
312 | sys::Selector::new().map(|selector| Poll {
| ^^^^^^^^ could not find Selector
in sys
error[E0433]: failed to resolve: could not find event
in sys
--> /home/amiya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/event.rs:24:14
|
24 | sys::event::token(&self.inner)
| ^^^^^ could not find event
in sys
error[E0433]: failed to resolve: could not find event
in sys
--> /home/amiya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/event.rs:38:14
|
38 | sys::event::is_readable(&self.inner)
| ^^^^^ could not find event
in sys
error[E0433]: failed to resolve: could not find event
in sys
--> /home/amiya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/event.rs:43:14
|
43 | sys::event::is_writable(&self.inner)
| ^^^^^ could not find event
in sys
error[E0433]: failed to resolve: could not find event
in sys
--> /home/amiya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/event.rs:68:14
|
68 | sys::event::is_error(&self.inner)
| ^^^^^ could not find event
in sys
error[E0433]: failed to resolve: could not find event
in sys
--> /home/amiya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.10/src/event/event.rs:99:14
|
99 | sys::event::is_read_closed(&self.inner)
| ^^^^^ could not find event
in sys