The component model test suites for wasmedge development.
cd /path/to/wasmedge
mkdir build; cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DWASMEDGE_PLUGIN_WASI_HTTP=ON -DWASMEDGE_BUILD_TOOLS=ON -GNinja ..
ninja
# at /path/to/wasmedge/build
./tools/wasmedge/wasmedge --enable-component /path/to/component-model-tests/core/core.wasm mdup 100
WASMEDGE_PLUGIN_PATH=./plugins/wasi_http ./tools/wasmedge/wasmedge --enable-component \
/path/to/component-model-tests/http/http.wasm run "https://google.com"
The validation of component is incomplete, there is no guarantee your program with problems can be detected.
- we only do validation for nested module.
- new concepts in components not checked yet.
- Let WasmEdge plugin produces component instance.
- We are going to implement canonical ABI first, this will need data conversion which rely on
memory
andreallocate
options in canonical lift/lowering.- rely on shared
memory
- rely on
reallocate
function
- rely on shared
- implements canonical resource
- wasi preview2
- Implement validation about types.