hostname
hostname copied to clipboard
Wasm target
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 ;)
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.
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?