You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking to deploy my code to Cloudfare workers, and it uses this library. I was wondering, do you plan to support WASM as build target?
I just tried now, and had a small error, due to the hostname dependency (maybe others?).
error: Unsupported target OS! Create an issue: https://github.com/svartalf/hostname/issues/new
--> /Users/amaurymartiny/.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");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0433]: failed to resolve: use of undeclared type or module `sys`
--> /Users/amaurymartiny/.cargo/registry/src/github.com-1ecc6299db9ec823/hostname-0.3.1/src/lib.rs:105:5
|
105 | sys::get()
| ^^^ use of undeclared type or module `sys`
error: aborting due to 2 previous errors
We could return localhost in wasm.
The text was updated successfully, but these errors were encountered:
I opened a PR #66 to remove hostname dependency. There is still a problem with some tokio features in dev-dependencies, but otherwise it should compile to wasm32-wasip2.
I'm looking to deploy my code to Cloudfare workers, and it uses this library. I was wondering, do you plan to support WASM as build target?
I just tried now, and had a small error, due to the
hostname
dependency (maybe others?).We could return
localhost
in wasm.The text was updated successfully, but these errors were encountered: