Skip to content

Async flavor of wasmtime_wasi_http::proxy::add_to_linker differs from sync flavor #8188

@rylev

Description

@rylev

The wasi:http/proxy world contains a subset of wasi imports found in the wasi:cli/command world. wasmtime_wasi_http::proxy::add_to_linker seems to do the right thing and only link the wasi interfaces that the world says it imports. However, wasmtime_wasi_http::proxy::sync::add_to_linker simply wholesale imports the entire command world.

There is a TODO stating that this is due to the adapter bringing in all of these imports along with a hidden function that only brings in the required imports. I'm unsure if this is all still needed for if this can be corrected. However, at the very least, this can be very confusing for users, and we should at least have some sort of documentation pointing out that this will happen.

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