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
package example:adder;
interface add {
add: func(a: u32, b: u32) -> u32;
}
/// An example world for the component to target.
world adder {
export add;
}
world another {
export add;
}
I got this error, but wasn't sure what exactly it meant.
$ cargo component build --release
error: failed to create a target world for package `adder` (/home/luap/Code/add/Cargo.toml)
Caused by:
0: failed to select the default world to use for local target `/home/luap/Code/add/wit`
1: multiple worlds found in package `example:adder`: one must be explicitly chosen
The fix is to add a world, to [package.metadata.component] in cargo.toml in my case:
world="adder"
this should be clearly stated in the error message
The text was updated successfully, but these errors were encountered:
I had this .wit file:
I got this error, but wasn't sure what exactly it meant.
The fix is to add a world, to
[package.metadata.component]
incargo.toml
in my case:this should be clearly stated in the error message
The text was updated successfully, but these errors were encountered: