Stream: git-wasmtime

Topic: wasmtime / issue #6852 Allow inspection of component exports


view this post on Zulip Wasmtime GitHub notifications bot (Aug 16 2023 at 07:31):

LLFourn opened issue #6852:

Feature

To be able to iterate over exports in the component API

Benefit

Makes it possible to show a user what functions they can call on component model WASM binary without additional metadata.

Implementation

Described in a FIXME comment:

https://github.com/bytecodealliance/wasmtime/blob/ca5a9db0d188d1f75f67477629f69f114b003b5a/crates/wasmtime/src/component/instance.rs#L730-L738

FWIW I am unsure why I need to create an Instance to see this. Shouldn't the Component be able to tell me the exports it has?

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2023 at 14:48):

alexcrichton commented on issue #6852:

Thanks for the report! I think this is a dupe of https://github.com/bytecodealliance/wasmtime/issues/4593, so closing in favor of that

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2023 at 14:48):

alexcrichton closed issue #6852:

Feature

To be able to iterate over exports in the component API

Benefit

Makes it possible to show a user what functions they can call on component model WASM binary without additional metadata.

Implementation

Described in a FIXME comment:

https://github.com/bytecodealliance/wasmtime/blob/ca5a9db0d188d1f75f67477629f69f114b003b5a/crates/wasmtime/src/component/instance.rs#L730-L738

FWIW I am unsure why I need to create an Instance to see this. Shouldn't the Component be able to tell me the exports it has?


Last updated: Dec 23 2024 at 12:05 UTC