async-std icon indicating copy to clipboard operation
async-std copied to clipboard

Linker error in stable-x86_64-pc-windows-gnu toolchain

Open yatesco opened this issue 5 years ago • 2 comments

Hi there, including async-std#1.6.5 pulls in async-io#1.10.0 which can't be cross compiled due to https://github.com/stjepang/async-io/issues/16

session_db v0.1.0 (/Users/coliny/Dev/com.qfi.health/src/rust-tools/session_db)
├── async-std v1.6.5
<snip>
│   ├── async-global-executor v1.4.2
<snip>
│   │   ├── async-io v1.1.10

It is claimed that this issue is fixed (https://github.com/stjepang/async-io/issues/16#issuecomment-692170201) but I still get the error.

Is there any magic I can use to tell async-std to pull in the "fixed" version of async-io?

Thanks!

EDIT: Neither of the following async-std directives in Cargo.toml work

# WEB
tide = "0.14"
#async-std = { version = "1.6", features = ["attributes"] }
async-std = { git = "https://github.com/async-rs/async-std", branch = "master" ,features = ["attributes"]}

yatesco avatar Oct 20 '20 10:10 yatesco

could the patch option for cargo help here?

[patch.crates-io]
async-std = { git = 'https://github.com/async-rs/async-std', branch = 'master',  features = ['attributes']}

src: https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#using-patch-with-multiple-versions

Licenser avatar Oct 20 '20 11:10 Licenser

That's the magic - thanks.

Unfortunately, it didn't solve the problem, even if I specifically referenced the fixed rev of async-io so I question whether it is actually fixed or not....

yatesco avatar Oct 20 '20 15:10 yatesco