Skip to content

in v2.3.2 with wasm-client, it could not compile; error[E0432]: unresolved import http_client::isahc #345

@usagi

Description

@usagi

Repro

  1. cargo new surf-wasm-test --lib
  2. edit "Cargo.toml"
    • crate-type = [ "cdylib" ] in [lib]
    • surf = { version = "2.3.2", fefault-features = false, features = [ "wasm-client" ] } in [dependencies]
  3. cargo check --target wasm32-unknown-unknown, and then it occur the error.

Error

    Checking surf v2.3.2
error[E0432]: unresolved import `http_client::isahc`
  --> /home/usagi/.cargo/registry/src/github.com-1ecc6299db9ec823/surf-2.3.2/src/client.rs:13:26
   |
13 |         use http_client::isahc::IsahcClient as DefaultClient;
   |                          ^^^^^ could not find `isahc` in `http_client`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `surf` due to previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions