Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

so many issues when cargo build #1

Open
npmstudy opened this issue Apr 18, 2024 · 3 comments
Open

so many issues when cargo build #1

npmstudy opened this issue Apr 18, 2024 · 3 comments

Comments

@npmstudy
Copy link

error[E0433]: failed to resolve: use of undeclared crate or module `hyper`
  --> /Users/npmstudy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/reqwest_wasi-0.11.16/src/async_impl/response.rs:35:30
   |
35 |         res: hyper::Response<hyper::Body>,
   |                              ^^^^^ use of undeclared crate or module `hyper`

Some errors have detailed explanations: E0412, E0422, E0432, E0433.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `reqwest_wasi` (lib) due to 104 previous errors
warning: build failed, waiting for other jobs to finish...
@alabulei1
Copy link
Collaborator

Hi @npmstudy

Sorry for the late reply. Can you provide me with the specific steps to reproduce the problem you met?

@suryyyansh
Copy link
Contributor

I had a similar issue. What I did was, removed EVERYTHING rust related (rustup, rustc, cargo) and then reinstalled rustup, did rustup target add wasm32-wasi, and finally the build proceeded as normal.

Since you mentioned nothing about rustup target add, you should probably do that first before the rest of the stuff mentioned above.

Basically, just make sure you don't have duplicate versions of rust.

@alabulei1
Copy link
Collaborator

I had a similar issue. What I did was, removed EVERYTHING rust related (rustup, rustc, cargo) and then reinstalled rustup, did rustup target add wasm32-wasi, and finally the build proceeded as normal.

Since you mentioned nothing about rustup target add, you should probably do that first before the rest of the stuff mentioned above.

Basically, just make sure you don't have duplicate versions of rust.

Hi @npmstudy , please check out @suryyyansh 's comment, which is very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants