Cargo.toml wasi-experimental-http and wasi-experimental-http-wasmtime dependencies: crates.io vs local path?
CarlosSardo opened this issue · 0 comments
Hello,
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.
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 enum Option
|
= 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 {
'