You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without changing wasmtime API, there seem to be two ways to fix this issue:
return a tuple from instantiate_async e.g. (Command, Instance) (and similar for other worlds)
simply remove the instantiate_async generated functions and require users to always instantiate manually and rely on Command::new (and similar for other worlds)
Since #11238 has been merged, calling an async export requires an
Accessor, however, the only way to get anAccessoris to use anInstance.Users relying uniquely on generated
instantiate_asyncbindings do not have access to one and so can never call the async export.Steps to Reproduce
cargo doc -p wasmtime-wasi --features p3 --open --document-private-itemstarget/doc/wasmtime_wasi/p3/bindings/struct.Command.htmlExpected Results
Either a way to run an export without manual instantiation or removal of these bindings
Actual Results
"dead end" from user's perspective with seemingly no way of constructing an
Accessorusing the public APIVersions and Environment
Wasmtime version or commit: 326795f (latest
main)Operating system: MacOS
Architecture: aarch64-darwin
Extra Info
Without changing
wasmtimeAPI, there seem to be two ways to fix this issue:instantiate_asynce.g.(Command, Instance)(and similar for other worlds)instantiate_asyncgenerated functions and require users to always instantiate manually and rely onCommand::new(and similar for other worlds)