Which defines the add_to_linker methods for Wasmtime which is entirely optional.
Non Wasmtime users of wasi-common might want to define their own add_to_linker functions.
Locally I did not see any compile errors with the removal of this dependency of this PR.
Closes https://github.com/bytecodealliance/wasmtime/issues/8894.
Motivation: This allows usage of
wasi-common
in non-Wasmtime Wasm runtimes.This was probably an oversight in https://github.com/bytecodealliance/wasmtime/pull/7881.
The only optional usage of the
wasmtime
crate that I could find within thewasi-common/sync
module is the following:Link: https://github.com/bytecodealliance/wasmtime/blob/main/crates/wasi-common/src/sync/mod.rs
Which defines the
add_to_linker
methods for Wasmtime which is entirely optional. Non Wasmtime users ofwasi-common
might want to define their ownadd_to_linker
functions.Locally I did not see any compile errors with the removal of this dependency of this PR.