rylev opened issue #8188:
The
wasi:http/proxyworld contains a subset ofwasiimports found in thewasi:cli/commandworld.wasmtime_wasi_http::proxy::add_to_linkerseems to do the right thing and only link thewasiinterfaces that the world says it imports. However,wasmtime_wasi_http::proxy::sync::add_to_linkersimply 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.
alexcrichton closed issue #8188:
The
wasi:http/proxyworld contains a subset ofwasiimports found in thewasi:cli/commandworld.wasmtime_wasi_http::proxy::add_to_linkerseems to do the right thing and only link thewasiinterfaces that the world says it imports. However,wasmtime_wasi_http::proxy::sync::add_to_linkersimply 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.
Last updated: Dec 06 2025 at 06:05 UTC