Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 16420

cant build dioxus project when i use tokio dependence

$
0
0

when i run a dioxus project and add tokio in dependence

tokio = { version = "1.37.0", features = ["full"] }

it will show

error[E0599]: no method named `deregister` found for struct `IoSource<std::net::UdpSocket>` in the current scope   --> /Users/xy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.11/src/net/udp.rs:635:20    |635 |         self.inner.deregister(registry)    |                    ^^^^^^^^^^ method not found in `IoSource<UdpSocket>`    |   ::: /Users/xy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.11/src/io_source.rs:62:1    |62  | pub struct IoSource<T> {    | ---------------------- method `deregister` not found for this struct Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0599. For more information about an error, try `rustc --explain E0412`. error: could not compile `mio` (lib) due to 44 previous errors

i tried cargo clean and cargo update but it did not work


Viewing all articles
Browse latest Browse all 16420

Latest Images

Trending Articles



Latest Images