I got this error while installing wasi-virt.
I used the first command:
cargo +nightly install --git https://github.com/bytecodealliance/wasi-virt
then this one :
cargo install --git https://github.com/bytecodealliance/wasi-virt
But I have the same error for both.
I have all this installed :
wasmCloud Shell;
Wasmtime;
Wac cli;
^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no ActiveDataLocation in the root
no ActiveData in the root
error[E0533]: expected value, found struct variant DataKind::Active
--> src/data.rs:124:13
|
124 | DataKind::Active(ActiveData {
| ^^^^^^^^^^^^^^^^ not a value
error[E0533]: expected value, found struct variant DataKind::Active
--> src/virt_env.rs:149:13
|
149 | DataKind::Active(ActiveData {
| ^^^^^^^^^^^^^^^^ not a value
error[E0164]: expected tuple struct or tuple variant, found struct variant DataKind::Active
--> src/walrus_ops.rs:8:9
|
8 | let DataKind::Active(active_data) = &data.kind else {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a tuple struct or tuple variant
error[E0164]: expected tuple struct or tuple variant, found struct variant DataKind::Active
--> src/walrusops.rs:39:9
|
39 | let DataKind::Active(ActiveData {
| ____^
40 | | location: ActiveDataLocation::Absolute(loc),
41 | | ..
42 | | }) = &data.kind
| |__^ not a tuple struct or tuple variant
Some errors have detailed explanations: E0164, E0432, E0533.
For more information about an error, try rustc --explain E0164.
error: could not compile wasi-virt (lib) due to 7 previous errors
error: failed to compile wasi-virt v0.1.0 (https://github.com/bytecodealliance/wasi-virt#3da2d181), intermediate artifacts can be found at /tmp/cargo-install3kwSdN.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.
I got this error while installing wasi-virt. I used the first command:
cargo +nightly install --git https://github.com/bytecodealliance/wasi-virt
then this one :cargo install --git https://github.com/bytecodealliance/wasi-virt
But I have the same error for both. I have all this installed : wasmCloud Shell; Wasmtime; Wac cli;
walrus::ActiveData
,walrus::ActiveDataLocation
--> src/data.rs:4:5ActiveDataLocation
in the rootActiveData
in the rootwalrus::ActiveData
,walrus::ActiveDataLocation
--> src/virt_env.rs:4:16ActiveDataLocation
in the rootActiveData
in the rootwalrus::ActiveData
,walrus::ActiveDataLocation
--> src/walrus_ops.rs:3:16ActiveDataLocation
in the rootActiveData
in the rooterror[E0533]: expected value, found struct variant
DataKind::Active
--> src/data.rs:124:13 | 124 | DataKind::Active(ActiveData { | ^^^^^^^^^^^^^^^^ not a valueerror[E0533]: expected value, found struct variant
DataKind::Active
--> src/virt_env.rs:149:13 | 149 | DataKind::Active(ActiveData { | ^^^^^^^^^^^^^^^^ not a valueerror[E0164]: expected tuple struct or tuple variant, found struct variant
DataKind::Active
--> src/walrus_ops.rs:8:9 | 8 | let DataKind::Active(active_data) = &data.kind else { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a tuple struct or tuple varianterror[E0164]: expected tuple struct or tuple variant, found struct variant
DataKind::Active
--> src/walrusops.rs:39:9 | 39 | let DataKind::Active(ActiveData { | ____^ 40 | | location: ActiveDataLocation::Absolute(loc), 41 | | .. 42 | | }) = &data.kind | |__^ not a tuple struct or tuple variantSome errors have detailed explanations: E0164, E0432, E0533. For more information about an error, try
rustc --explain E0164
. error: could not compilewasi-virt
(lib) due to 7 previous errors error: failed to compilewasi-virt v0.1.0 (https://github.com/bytecodealliance/wasi-virt#3da2d181)
, intermediate artifacts can be found at/tmp/cargo-install3kwSdN
. To reuse those artifacts with a future compilation, set the environment variableCARGO_TARGET_DIR
to that path.