Closed raphaelsoul closed 3 years ago
please paste your project Cargo.toml file content
[package]
name = "reproduce"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
tokio = { version = "1.8.1", features = ["full"] }
ws-tool = "*"
this fails with output above
[package]
name = "reproduce"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
tokio = { version = "*", features = ["full"] }
ws-tool = "*"
this works, and installed tokio version is 1.6.3
// cargo.lock
[[package]]
name = "tokio"
version = "1.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bddec43e7d9e77f958e866be951607158ceb2475c4bbdc0b5f68cd5b47d82d89"
dependencies = [
"autocfg",
"bytes",
"libc",
"memchr",
"mio",
"num_cpus",
"once_cell",
"parking_lot",
"pin-project-lite",
"signal-hook-registry",
"tokio-macros",
"winapi",
]
I prefer to specify major version, let cargo choose compatible dependency version, see Dependency Resolution for more info.