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

Wasm target #16

Open
tttp opened this issue Jan 23, 2022 · 2 comments
Open

Wasm target #16

tttp opened this issue Jan 23, 2022 · 2 comments

Comments

@tttp
Copy link

tttp commented Jan 23, 2022

Hi,

I'm trying to run it on cloudflare worker and I got the error:

error: Unsupported target OS! Create an issue: https://github.com/svartalf/hostname/issues/new
--> /home/xavier/.cargo/registry/src/github.com-1ecc6299db9ec823/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");

So here I am, creating an issue ;)

@svartalf
Copy link
Owner

It seems to be not possible to add WASM support right now, see previous discussion at #15.

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

@bitfl0wer
Copy link

Perhaps it might make sense to not have the build fail, but rather have methods like hostname::get() return an Error Result which can be handled by the developer?

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

No branches or pull requests

3 participants