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
This commit fixes the `--with` option in the Rust generate from changes
in bytecodealliance#972. Notably the fixes here are:
* The `--with` option is no longer required.
* Multiple `--with` options are now accepted again.
* A new `--generate-all` option was added.
* The `generate_all` macro option was documented.
* Error messages on the CLI and the macro now mention all the variants
of how to fix the error.
Closesbytecodealliance#995
bail!("no remapping found for {with_name:?} - use the `generate!` macro's `with` option to force the interface to be generated or specify where it is already defined:
311
-
```
312
-
with: {{\n\t{with_name:?}: generate\n}}
313
-
```")
327
+
bail!(MissingWith(with_name));
314
328
};
315
329
self.generated_interfaces.insert(with_name);
316
330
let entry = match remapping {
@@ -872,7 +886,7 @@ impl WorldGenerator for RustWasm {
write!(f,"missing `with` mapping for the key `{}`",self.0)
1441
+
}
1442
+
}
1443
+
1444
+
impl std::error::ErrorforMissingWith{}
1445
+
1446
+
// bail!("no remapping found for {with_name:?} - use the `generate!` macro's `with` option to force the interface to be generated or specify where it is already defined:
0 commit comments