Skip to content

Isahc issue #1

Open
Open
@makorne

Description

@makorne

Hi!
Thank you for your great project!

I try to update it to current cf worker 0.11 (from old 0.7) but compiling failed at the end with 2 crates left from 300+.

   Compiling async-h1 v2.3.3
error[E0425]: cannot find function `spawn` in module `task`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/async-h1-2.3.3/src/server/decode.rs:106:15
    |
106 |         task::spawn(async move {
    |               ^^^^^ not found in `task`
    |
help: consider importing this function
    |
3   | use std::thread::spawn;
    |
help: if you import `spawn`, refer to it directly
    |
106 -         task::spawn(async move {
106 +         spawn(async move {
    |

   Compiling surf v2.3.2
For more information about this error, try `rustc --explain E0425`.
error: could not compile `async-h1` due to previous error
warning: build failed, waiting for other jobs to finish...
error[E0432]: unresolved import `http_client::isahc`
  --> .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`

The isahc issue looks already solved in your cargo.
So I cant find how to update .

May be you as creator know what may be the problem and how to update it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions