Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Cargo.toml wasi-experimental-http and wasi-experimental-http-wasmtime dependencies: crates.io vs local path? #94

Open
CarlosSardo opened this issue May 18, 2022 · 0 comments

Comments

@CarlosSardo
Copy link

CarlosSardo commented May 18, 2022

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 {
'

@CarlosSardo 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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant