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

wasix support #19

Closed
hitchhooker opened this issue Jul 1, 2023 · 3 comments
Closed

wasix support #19

hitchhooker opened this issue Jul 1, 2023 · 3 comments

Comments

@hitchhooker
Copy link

cargo wasix build

   Compiling hostname v0.3.1
error: Unsupported target OS! Create an issue: https://github.com/svartalf/hostname/issues/new
  --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hostname-0.3.1/src/lib.rs:81:9
   |
81 |         compile_error!("Unsupported target OS! Create an issue: https://github.com/svartalf/hostname/issues/new");
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0433]: failed to resolve: use of undeclared crate or module `sys`
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hostname-0.3.1/src/lib.rs:105:5
    |
105 |     sys::get()
    |     ^^^ use of undeclared crate or module `sys`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `hostname` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
@svartalf
Copy link
Owner

svartalf commented Jul 2, 2023

Same to #16 and the discussion at #15 , there is nothing that can be done for this crate unless Wasix introduces some way to get the machine hostname.

Let's keep this issue open and use it as a tracking issue.

@hitchhooker
Copy link
Author

@svartalf
Copy link
Owner

svartalf commented Jul 4, 2023

@hitchhooker this looks like the opposite of what we are looking for, as it resolves a DNS hostname into IP addresses (similar to getaddrinfo(3), for example).

In addition, I'm not sure how to determine during the compile time that we are compiling for Wasix specifically, as there is no such compilation target in Rust.

With all of it, it seems like there is nothing can be done to resolve this issue for now.

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

2 participants