relevent upstream work:
bytecodealliance/wasm-tools#1577
bytecodealliance/wit-bindgen#978
It seems like the latest research of cargo-component does not support multi-packages in WITs.
Caused by:
0: failed to parse local target from directory `/Users/mossaka/Developer/mossaka/hello-component-wasi-http-part2/wit`
1: expected ';', found '{'
--> /Users/mossaka/Developer/mossaka/hello-component-wasi-http-part2/wit/wasi_http.wit:1:23
|
1 | package wasi:io@0.2.0 {
| ^
(base) ➜ hello-component-wasi-http-part2
relevent upstream work:
bytecodealliance/wasm-tools#1577
bytecodealliance/wit-bindgen#978
It seems like the latest research of
cargo-componentdoes not support multi-packages in WITs.Caused by: 0: failed to parse local target from directory `/Users/mossaka/Developer/mossaka/hello-component-wasi-http-part2/wit` 1: expected ';', found '{' --> /Users/mossaka/Developer/mossaka/hello-component-wasi-http-part2/wit/wasi_http.wit:1:23 | 1 | package wasi:io@0.2.0 { | ^ (base) ➜ hello-component-wasi-http-part2