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

How to make HTTP request. #636

Open
kant2002 opened this issue Oct 28, 2024 · 0 comments
Open

How to make HTTP request. #636

kant2002 opened this issue Oct 28, 2024 · 0 comments

Comments

@kant2002
Copy link

I did try to create small console app which do only one HTTP request. But both reqwest and tokio do not work for me.

Reqwest produce following error.

error[E0583]: file not found for module `sys`
   --> C:\Users\User\.cargo\registry\src\index.crates.io-6f17d22bba15001f\socket2-0.5.7\src\lib.rs:179:1
    |
179 | mod sys;
    | ^^^^^^^^
    |
    = help: to create the module `sys`, create file "C:\Users\User\.cargo\registry\src\index.crates.io-6f17d22bba15001f\socket2-0.5.7\src\sys.rs" or "C:\Users\User\.cargo\registry\src\index.crates.io-6f17d22bba15001f\socket2-0.5.7\src\sys\mod.rs"
    = note: if there is a `mod sys` elsewhere in the crate already, import it with `use crate::...` instead

error: Socket2 doesn't support the compile target
   --> C:\Users\User\.cargo\registry\src\index.crates.io-6f17d22bba15001f\socket2-0.5.7\src\lib.rs:182:1
    |
182 | compile_error!("Socket2 doesn't support the compile target");
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Is there way to make HTTP request in Hermit? What direction should I take?

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

1 participant