I'm particularly happy with how we propagate errors from the proc-block to the host:
$ cargo xtask graph modulo.wasm modulo=42
Error: Unable to infer the input and output tensors
Caused by:
0: The "modulus" argument was invalid
1: The argument wasn't provided
$ cargo xtask graph modulo.wasm modulus=3.14 element_type=something-else
Error: Unable to infer the input and output tensors
Caused by:
0: The "element_type" argument was invalid
1: Unsupported element type
This PR introduces the
cargo xtask metadata
,cargo xtask graph
, andcargo xtask kernel
commands.Running it against the
wit-files
repo'smodulo
example, we get the following:I'm particularly happy with how we propagate errors from the proc-block to the host: