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
With wasmer@4, this no longer works since default_http_client does not return instance if host-reqwest is not enabled. Instead, it raises build time error
panicked at 'Loading the builtin resolver should never fail: No HTTP client available'
I would agree having a default network client is a reasonable default, but in certain cases like us bringing whole reqwest impl into binary is not something easily able to adapt. Would like to have a way to instantiate runtime without it.
Proposed solution
Make a no-op client if backing http client is not enabled; or in a high level networking itself could be opt-in.
Or, provide an interface to provide http client dynamically when init runtime, so the caller can provide no-op instance if they want.
Alternatives
Unsure if there's a workaround without upstream changes.
Additional context
Primary reason we want to avoid reqwest (and potentially others) is it is not trivial to have enabled for the all of the target platform we support, and also we have quite complex cargo feature conflict when bring those into.
The text was updated successfully, but these errors were encountered:
Ah yeah, well, since you won't need that package loader (which is only for downloading packages from a package registry), you can either just manually construct the PluggableRuntime (all fields are public), or implement Runtime for you own custom struct.
And you can use a noop trait PackageLoader implementation.
We should make the PackageLoader optional though, just like the http client.
Thanks for proposing a new feature!
Motivation
We have limited wasix support in the runtime, by enabling some of wasix features like
With wasmer@4, this no longer works since default_http_client does not return instance if
host-reqwest
is not enabled. Instead, it raises build time errorpanicked at 'Loading the builtin resolver should never fail: No HTTP client available'
I would agree having a default network client is a reasonable default, but in certain cases like us bringing whole
reqwest
impl into binary is not something easily able to adapt. Would like to have a way to instantiate runtime without it.Proposed solution
Make a no-op client if backing http client is not enabled; or in a high level
networking
itself could be opt-in.Or, provide an interface to provide http client dynamically when init runtime, so the caller can provide no-op instance if they want.
Alternatives
Unsure if there's a workaround without upstream changes.
Additional context
Primary reason we want to avoid reqwest (and potentially others) is it is not trivial to have enabled for the all of the target platform we support, and also we have quite complex cargo feature conflict when bring those into.
The text was updated successfully, but these errors were encountered: