Skip to content
This repository was 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

@CarlosSardo

Description

@CarlosSardo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions