tokio-rs / tokio

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
https://tokio.rs
MIT License
26.44k stars 2.44k forks source link

Failed to select a version for the requirement mio #6758

Open adrien3d opened 1 month ago

adrien3d commented 1 month ago

Hello, while trying to use latest version of toklo (v1.39.2), I have the following error on a cargo run:

error: failed to select a version for the requirement `mio = "^1.0.1"`
candidate versions found which didn't match: 1.0.0, 0.8.11, 0.8.10, ...
location searched: crates.io index
required by package `tokio v1.39.2`
    ... which satisfies dependency `tokio = "^1.39.2"` (locked to 1.39.2) of package `iss v0.1.0

Any idea on how to fix the issue? It seems that there is some problem with mio dependency version.

Darksonn commented 1 month ago

Try deleting your Cargo.lock.