Stream: git-wasmtime

Topic: wasmtime / issue #6936 Document arguments to `wasmtime_co...


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

Kylebrown9 opened issue #6936:

The arguments are not documented and the only way to figure out what they are easily is to dig through the arguments parsing source.

The possible arguments and common combinations of them should be documented in the README for wasmtime_component_macro.

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

alexcrichton commented on issue #6936:

The intention is that the macro has rustdoc documentation, but that may not be the most up-to-date. If anything is missing though I think it should go here

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

Kylebrown9 commented on issue #6936:

Ah, I had been using it directly and if you do so that documentation does not come up.

wasmtime = { version = "10.0", features = ["component-model"]}
wasmtime-component-macro = "10.0"

and

use wasmtime_component_macro::bindgen;
bindgen!({ ... });

We should probably put a readme/comments up that point users towards using it as an export of the wasmtime crate in wasmtime_component_macro and link them to that rustdoc as well.


Last updated: Oct 23 2024 at 20:03 UTC