bytecodealliance / bytecodealliance/wac

WAB plug and compose fails?

Open
#148 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
208
Forks
41
Avg merge
2d 7h
Merged PRs (30d)
3

Description

Hi,
I've tested the 'hello' example with my installation and it works... Thanks for building WAC! However, I'm not able to run the following example:
```
package bab:compound; // Compound.wit
world compound-world {
export compound-interface: interface { // Inline def. of interface...
compound-function: func();
}
}
```
/**/
```
package bab:composite; // 'Composite.wit'
world composite-world { // a.k.a. "socket" component
import compound-interface: interface { // Inline def. of interface...
compound-function: func();
}
}
```
**/* Transform wit into wasm: */**
```
wasm-tools component wit --wasm -o ./composition/Compound.wasm ./composition/Compound.wit
wasm-tools component wit --wasm -o ./composition/Composite.wasm ./composition/Composite.wit
```
**/* Compose with 'plug': */**
`wac plug --plug ./composition/Compound.wasm ./composition/Composite.wasm -o ./composition/Composition.wasm`
/* Error message is: */
error: the socket component had no matching imports for the plugs that were provided

I've feeling that the error message is "wrong" because the "compound-interface" matches? Thanks for any help... Regards.
PS: `wac compose` does *NOT* work as well (open an other issue on that...)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.