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
{{ message }}
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
Any thoughs on having the wasi-experimental-http and wasi-experimental-http-wasmtime dependencies (in Cargo.toml) fetched from crates.io, instead of having it referenced in a local path? I presume these dependencies need to also be updated with the latest changes and a new version published in crates.io.
When attempting to reference to the latest version(s): 0.9.0 we get build/run errors.
error: cannot construct HttpCtx with struct literal syntax due to inaccessible fields
--> bin/wasmtime-http.rs:98:16
|
98 | let http = HttpCtx {
'
The text was updated successfully, but these errors were encountered:
CarlosSardo
changed the title
Cargo.toml wasi-experimental-http and wasi-experimental-http-wasmtime dependencies: crates.io vs path?
Cargo.toml wasi-experimental-http and wasi-experimental-http-wasmtime dependencies: crates.io vs local path?
May 18, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
Any thoughs on having the
wasi-experimental-http
andwasi-experimental-http-wasmtime
dependencies (in Cargo.toml) fetched from crates.io, instead of having it referenced in a local path? I presume these dependencies need to also be updated with the latest changes and a new version published in crates.io.When attempting to reference to the latest version(s): 0.9.0 we get build/run errors.
Thanks!
Cargo.toml:
wasi-experimental-http = "0.9.0"
wasi-experimental-http-wasmtime = "0.9.0"
Output:
'
error[E0308]: mismatched types
--> bin/wasmtime-http.rs:99:9
|
99 | allowed_hosts,
| ^^^^^^^^^^^^^ expected struct
Arc
, found enumOption
|
= note: expected struct
Arc<Option<_>>
found enum
Option<_>
error: cannot construct
HttpCtx
with struct literal syntax due to inaccessible fields--> bin/wasmtime-http.rs:98:16
|
98 | let http = HttpCtx {
'
The text was updated successfully, but these errors were encountered: