hostname icon indicating copy to clipboard operation
hostname copied to clipboard

Wasm target

Open tttp opened this issue 3 years ago • 2 comments

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 ;)

tttp avatar Jan 23 '22 15:01 tttp

It seems to be not possible to add WASM support right now, see previous discussion at https://github.com/svartalf/hostname/pull/15.

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

svartalf avatar Jan 24 '22 19:01 svartalf

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?

bitfl0wer avatar Nov 13 '23 13:11 bitfl0wer