andy@ark ~> cargo The program 'cargo' is not in your PATH. It is provided by several packages. You can make it available in an ephemeral shell by typing one of the following: nix-shell -p cargo nix-shell -p mrustc-bootstrap nix-shell -p rustup andy@ark ~ [127]> nix-shell -p cargo these paths will be fetched (137.59 MiB download, 810.64 MiB unpacked): /nix/store/cbaw58rdmvsfnapz7wmj4ncg40yfipbb-cargo-1.56.1 /nix/store/gmyc3j5f39xklqkn7cg8agw11sj21f53-rustc-1.56.1 /nix/store/r7a6rgbwsm72r1bvyifmzy30w1ra38kw-llvm-13.0.0-dev copying path '/nix/store/r7a6rgbwsm72r1bvyifmzy30w1ra38kw-llvm-13.0.0-dev' from 'https://cache.nixos.org'... copying path '/nix/store/gmyc3j5f39xklqkn7cg8agw11sj21f53-rustc-1.56.1' from 'https://cache.nixos.org'... copying path '/nix/store/cbaw58rdmvsfnapz7wmj4ncg40yfipbb-cargo-1.56.1' from 'https://cache.nixos.org'... [nix-shell:~]$ cargo install wasm-tools Updating crates.io index Downloaded wasm-tools v1.0.7 Downloaded 1 crate (70.7 KB) in 0.56s Installing wasm-tools v1.0.7 Downloaded cc v1.0.73 Downloaded humantime v2.1.0 Downloaded indexmap v1.9.1 Downloaded itoa v1.0.2 Downloaded instant v0.1.12 Downloaded libc v0.2.126 Downloaded regex v1.5.6 Downloaded rand_core v0.6.3 Downloaded rand_chacha v0.3.1 Downloaded rand v0.8.5 Downloaded remove_dir_all v0.5.3 Downloaded rayon-core v1.9.3 Downloaded is_executable v1.0.1 Downloaded regex-syntax v0.6.26 Downloaded rayon v1.5.3 Downloaded serde_derive v1.0.137 Downloaded serde v1.0.137 Downloaded subtle v2.4.1 Downloaded strsim v0.10.0 Downloaded smallvec v1.8.1 Downloaded serde_json v1.0.81 Downloaded scopeguard v1.1.0 Downloaded ryu v1.0.10 Downloaded quote v1.0.20 Downloaded proc-macro-error-attr v1.0.4 Downloaded proc-macro-error v1.0.4 Downloaded os_str_bytes v6.1.0 Downloaded once_cell v1.12.0 Downloaded thiserror-impl v1.0.31 Downloaded thiserror v1.0.31 Downloaded textwrap v0.15.0 Downloaded termcolor v1.1.3 Downloaded wasm-smith v0.11.1 Downloaded version_check v0.9.4 Downloaded unicode-width v0.1.9 Downloaded unicode-ident v1.0.1 Downloaded typenum v1.15.0 Downloaded tempfile v3.3.0 Downloaded wat v1.0.44 Downloaded wasmparser v0.86.0 Downloaded symbolic_expressions v5.0.3 Downloaded wasm-encoder v0.13.0 Downloaded syn v1.0.98 Downloaded wast v42.0.0 Downloaded wasmprinter v0.2.36 Downloaded autocfg v1.1.0 Downloaded atty v0.2.14 Downloaded crypto-common v0.1.3 Downloaded crossbeam-channel v0.5.5 Downloaded clap_lex v0.2.3 Downloaded clap_derive v3.2.6 Downloaded getrandom v0.2.7 Downloaded proc-macro2 v1.0.40 Downloaded derive_arbitrary v1.1.3 Downloaded arrayvec v0.7.2 Downloaded arrayref v0.3.6 Downloaded ppv-lite86 v0.2.16 Downloaded memoffset v0.6.5 Downloaded block-buffer v0.10.2 Downloaded constant_time_eq v0.1.5 Downloaded heck v0.4.0 Downloaded hashbrown v0.12.1 Downloaded generic-array v0.14.5 Downloaded leb128 v0.2.5 Downloaded crossbeam-utils v0.8.10 Downloaded flagset v0.4.3 Downloaded arbitrary v1.1.3 Downloaded crossbeam-epoch v0.9.9 Downloaded crossbeam-deque v0.8.1 Downloaded egg v0.6.0 Downloaded blake3 v1.3.1 Downloaded fastrand v1.7.0 Downloaded env_logger v0.9.0 Downloaded either v1.6.1 Downloaded digest v0.10.3 Downloaded cfg-if v1.0.0 Downloaded bitflags v1.3.2 Downloaded wasmparser-dump v0.1.4 Downloaded wasm-shrink v0.1.6 Downloaded clap v3.2.6 Downloaded anyhow v1.0.58 Downloaded aho-corasick v0.7.18 Downloaded wasm-mutate v0.2.4 Downloaded num_cpus v1.13.1 Downloaded memchr v2.5.0 Downloaded log v0.4.17 Downloaded 86 crates (4.5 MB) in 0.50s Compiling autocfg v1.1.0 Compiling proc-macro2 v1.0.40 Compiling quote v1.0.20 Compiling cfg-if v1.0.0 Compiling unicode-ident v1.0.1 Compiling version_check v0.9.4 Compiling syn v1.0.98 Compiling libc v0.2.126 Compiling once_cell v1.12.0 Compiling hashbrown v0.12.1 Compiling typenum v1.15.0 Compiling crossbeam-utils v0.8.10 Compiling memchr v2.5.0 Compiling log v0.4.17 Compiling serde_derive v1.0.137 Compiling leb128 v0.2.5 Compiling anyhow v1.0.58 Compiling serde v1.0.137 Compiling heck v0.4.0 Compiling os_str_bytes v6.1.0 Compiling termcolor v1.1.3 Compiling rayon-core v1.9.3 Compiling cc v1.0.73 Compiling ppv-lite86 v0.2.16 Compiling scopeguard v1.1.0 Compiling bitflags v1.3.2 Compiling smallvec v1.8.1 Compiling textwrap v0.15.0 Compiling symbolic_expressions v5.0.3 Compiling subtle v2.4.1 Compiling strsim v0.10.0 Compiling arrayref v0.3.6 Compiling arrayvec v0.7.2 Compiling serde_json v1.0.81 Compiling constant_time_eq v0.1.5 Compiling unicode-width v0.1.9 Compiling regex-syntax v0.6.26 Compiling fastrand v1.7.0 Compiling humantime v2.1.0 Compiling remove_dir_all v0.5.3 Compiling itoa v1.0.2 Compiling ryu v1.0.10 Compiling either v1.6.1 Compiling is_executable v1.0.1 Compiling instant v0.1.12 Compiling wasm-encoder v0.13.0 Compiling clap_lex v0.2.3 Compiling generic-array v0.14.5 Compiling proc-macro-error-attr v1.0.4 Compiling proc-macro-error v1.0.4 Compiling indexmap v1.9.1 Compiling memoffset v0.6.5 Compiling crossbeam-epoch v0.9.9 Compiling rayon v1.5.3 Compiling crossbeam-channel v0.5.5 Compiling aho-corasick v0.7.18 Compiling wast v42.0.0 Compiling getrandom v0.2.7 Compiling atty v0.2.14 Compiling num_cpus v1.13.1 Compiling tempfile v3.3.0 Compiling wasmparser v0.86.0 Compiling egg v0.6.0 Compiling blake3 v1.3.1 error: there is no argument named `core_func_index` --> /home/andy/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmparser-0.86.0/src/validator/component.rs:299:106 | 299 | "lowered parameter types `{:?}` do not match parameter types `{:?}` of core function {core_func_index}", | ^^^^^^^^^^^^^^^^^ error: there is no argument named `core_func_index` --> /home/andy/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmparser-0.86.0/src/validator/component.rs:310:100 | 310 | "lowered result types `{:?}` do not match result types `{:?}` of core function {core_func_index}", | ^^^^^^^^^^^^^^^^^ error: there is no argument named `MAX_WASM_TYPE_SIZE` --> /home/andy/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmparser-0.86.0/src/validator.rs:83:63 | 83 | format!("effective type size exceeds the limit of {MAX_WASM_TYPE_SIZE}"), | ^^^^^^^^^^^^^^^^^^^^ error: there is no argument named `index` --> /home/andy/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmparser-0.86.0/src/validator.rs:1210:46 | 1210 | format!("value index {index} was not used as part of an instantiation, start function, or export"), | ^^^^^^^ Compiling crossbeam-deque v0.8.1 Compiling rand_core v0.6.3 Compiling regex v1.5.6 Compiling rand_chacha v0.3.1 Compiling rand v0.8.5 Compiling crypto-common v0.1.3 Compiling block-buffer v0.10.2 Compiling digest v0.10.3 error: could not compile `wasmparser` due to 4 previous errors warning: build failed, waiting for other jobs to finish... error: failed to compile `wasm-tools v1.0.7`, intermediate artifacts can be found at `/run/user/1000/cargo-installVXaQox` Caused by: build failed [nix-shell:~]$