@@ -233,19 +233,21 @@ pub struct EmbedOpts {
233
233
/// The expected string encoding format for the component.
234
234
///
235
235
/// Supported values are: `utf8` (default), `utf16`, and `compact-utf16`.
236
- /// This is only applicable to the `-- wit` argument to describe the string
236
+ /// This is only applicable to the `wit` argument to describe the string
237
237
/// encoding of the functions in that world.
238
238
#[ clap( long, value_name = "ENCODING" ) ]
239
239
encoding : Option < StringEncoding > ,
240
240
241
241
/// The world that the component uses.
242
242
///
243
- /// This is the path, within the `WIT` source provided as a positional argument, to the `world`
244
- /// that the core wasm module works with. This can either be a bare string which is a document
245
- /// name that has a `default world`, or it can be a `foo/bar` name where `foo` names a document
246
- /// and `bar` names a world within that document. If the `WIT` source provided contains multiple
247
- /// packages, this option must be set, and must be of the fully-qualified form (ex:
248
- /// "wasi:http/proxy")
243
+ /// This is the path, within the `WIT` source provided as a positional
244
+ /// argument, to the `world` that the core wasm module works with. If this
245
+ /// option is omitted then the "main package" pointed to by `WIT` must have
246
+ /// a single world and that's what is used to embed. Otherwise this could be
247
+ /// a bare string `foo` to point to the `world foo` within the main
248
+ /// package of WIT. Finally this can be a fully qualified name too such as
249
+ /// `wasi:http/proxy` which can select a world from a WIT dependency as
250
+ /// well.
249
251
#[ clap( short, long) ]
250
252
world : Option < String > ,
251
253
0 commit comments