[INFO] crate substrate-wasmtime 0.13.0-threadsafe.1 is already in cache [INFO] checking substrate-wasmtime-0.13.0-threadsafe.1 against master#ba72b15666b2491415aec703a02c2364fe5e2790 for pr-71140 [INFO] extracting crate substrate-wasmtime 0.13.0-threadsafe.1 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate substrate-wasmtime 0.13.0-threadsafe.1 on toolchain ba72b15666b2491415aec703a02c2364fe5e2790 [INFO] running `"/workspace/cargo-home/bin/cargo" "+ba72b15666b2491415aec703a02c2364fe5e2790" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate substrate-wasmtime 0.13.0-threadsafe.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate substrate-wasmtime 0.13.0-threadsafe.1 [INFO] tweaked toml for crates.io crate substrate-wasmtime 0.13.0-threadsafe.1 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate crates.io crate substrate-wasmtime 0.13.0-threadsafe.1 already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+ba72b15666b2491415aec703a02c2364fe5e2790" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+ba72b15666b2491415aec703a02c2364fe5e2790" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5d42e6abb45efa4bc46ed243aa49e776c3ada7bff69a01b99171c165224ca7d6 [INFO] running `"docker" "start" "-a" "5d42e6abb45efa4bc46ed243aa49e776c3ada7bff69a01b99171c165224ca7d6"` [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling leb128 v0.2.4 [INFO] [stderr] Checking wast v10.0.0 [INFO] [stderr] Compiling anyhow v1.0.26 [INFO] [stderr] Checking regex v1.3.4 [INFO] [stderr] Checking gimli v0.20.0 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Checking num-rational v0.2.3 [INFO] [stderr] Compiling wast v9.0.0 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking flate2 v1.0.13 [INFO] [stderr] Checking errno v0.2.4 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking region v2.1.2 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking filetime v0.2.8 [INFO] [stderr] Checking env_logger v0.6.2 [INFO] [stderr] Compiling jobserver v0.1.21 [INFO] [stderr] Checking rayon-core v1.7.0 [INFO] [stderr] Checking directories v2.0.2 [INFO] [stderr] Checking wat v1.0.11 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking file-per-thread-logger v0.1.2 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking pretty_env_logger v0.3.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling zstd-sys v1.4.15+zstd.1.4.4 [INFO] [stderr] Compiling backtrace-sys v0.1.34 [INFO] [stderr] Compiling raw-cpuid v7.0.3 [INFO] [stderr] Compiling substrate-wasmtime-runtime v0.13.0-threadsafe.1 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling thiserror-impl v1.0.11 [INFO] [stderr] Compiling scroll_derive v0.10.1 [INFO] [stderr] Compiling proc-macro-error-attr v0.4.11 [INFO] [stderr] Checking backtrace v0.3.45 [INFO] [stderr] Checking scroll v0.10.1 [INFO] [stderr] Compiling proc-macro-error v0.4.11 [INFO] [stderr] Checking goblin v0.1.3 [INFO] [stderr] Checking thiserror v1.0.11 [INFO] [stderr] Checking yanix v0.12.0 [INFO] [stderr] Compiling structopt-derive v0.4.4 [INFO] [stderr] Checking object v0.17.0 [INFO] [stderr] Compiling structopt v0.3.11 [INFO] [stderr] Compiling witx v0.8.3 [INFO] [stderr] Checking serde v1.0.104 [INFO] [stderr] Compiling wig v0.12.0 [INFO] [stderr] Checking wasi-common v0.12.0 [INFO] [stderr] Checking cranelift-entity v0.59.0 [INFO] [stderr] Checking toml v0.5.6 [INFO] [stderr] Checking bincode v1.2.1 [INFO] [stderr] Checking string-interner v0.7.1 [INFO] [stderr] Checking wasmtime-profiling v0.12.0 [INFO] [stderr] Checking zstd-safe v2.0.3+zstd.1.4.4 [INFO] [stderr] Checking faerie v0.14.0 [INFO] [stderr] Checking zstd v0.5.1+zstd.1.4.4 [INFO] [stderr] Checking cranelift-bforest v0.59.0 [INFO] [stderr] Compiling cranelift-codegen-meta v0.59.0 [INFO] [stderr] Compiling cranelift-codegen v0.59.0 [INFO] [stderr] Checking cranelift-frontend v0.59.0 [INFO] [stderr] Checking cranelift-native v0.59.0 [INFO] [stderr] Checking cranelift-wasm v0.59.0 [INFO] [stderr] Checking wasmtime-environ v0.12.0 [INFO] [stderr] Checking wasmtime-debug v0.12.0 [INFO] [stderr] Checking substrate-wasmtime-jit v0.13.0-threadsafe.1 [INFO] [stderr] Checking substrate-wasmtime v0.13.0-threadsafe.1 (/opt/rustwide/workdir) [INFO] [stderr] warning: unnecessary braces around assigned value [INFO] [stderr] --> src/runtime.rs:228:33 [INFO] [stderr] | [INFO] [stderr] 228 | self.profiler = { Some(Arc::new(Mutex::new(Box::new(JitDumpAgent::default())))) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_braces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around assigned value [INFO] [stderr] --> src/runtime.rs:230:34 [INFO] [stderr] | [INFO] [stderr] 230 | _ => self.profiler = { None }, [INFO] [stderr] | ^^^^^^^^ help: remove these braces [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around assigned value [INFO] [stderr] --> src/runtime.rs:228:33 [INFO] [stderr] | [INFO] [stderr] 228 | self.profiler = { Some(Arc::new(Mutex::new(Box::new(JitDumpAgent::default())))) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_braces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around assigned value [INFO] [stderr] --> src/runtime.rs:230:34 [INFO] [stderr] | [INFO] [stderr] 230 | _ => self.profiler = { None }, [INFO] [stderr] | ^^^^^^^^ help: remove these braces [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> examples/gcd.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> examples/gcd.rs:39:17 [INFO] [stderr] | [INFO] [stderr] 39 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> examples/gcd.rs:40:18 [INFO] [stderr] | [INFO] [stderr] 40 | let module = Module::new(&store, WAT)?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> examples/gcd.rs:52:20 [INFO] [stderr] | [INFO] [stderr] 52 | let instance = Instance::new(&module, &[])?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/gcd.rs:56:29 [INFO] [stderr] | [INFO] [stderr] 56 | let result = gcd.call(&[Val::from(6i32), Val::from(27i32)])?; [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/gcd.rs:56:46 [INFO] [stderr] | [INFO] [stderr] 56 | let result = gcd.call(&[Val::from(6i32), Val::from(27i32)])?; [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> tests/import-indexes.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> tests/globals.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/globals.rs:5:17 [INFO] [stderr] | [INFO] [stderr] 5 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/globals.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | let g = Global::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/globals.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | GlobalType::new(ValType::I32, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `GlobalType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/globals.rs:8:25 [INFO] [stderr] | [INFO] [stderr] 8 | GlobalType::new(ValType::I32, Mutability::Const), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Mutability` [INFO] [stderr] --> tests/globals.rs:8:39 [INFO] [stderr] | [INFO] [stderr] 8 | GlobalType::new(ValType::I32, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `Mutability` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/globals.rs:14:13 [INFO] [stderr] | [INFO] [stderr] 14 | let g = Global::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/globals.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | GlobalType::new(ValType::I32, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `GlobalType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/globals.rs:16:25 [INFO] [stderr] | [INFO] [stderr] 16 | GlobalType::new(ValType::I32, Mutability::Const), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Mutability` [INFO] [stderr] --> tests/globals.rs:16:39 [INFO] [stderr] | [INFO] [stderr] 16 | GlobalType::new(ValType::I32, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `Mutability` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/globals.rs:21:13 [INFO] [stderr] | [INFO] [stderr] 21 | let g = Global::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/globals.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 23 | GlobalType::new(ValType::I64, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `GlobalType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/globals.rs:23:25 [INFO] [stderr] | [INFO] [stderr] 23 | GlobalType::new(ValType::I64, Mutability::Const), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Mutability` [INFO] [stderr] --> tests/globals.rs:23:39 [INFO] [stderr] | [INFO] [stderr] 23 | GlobalType::new(ValType::I64, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `Mutability` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/globals.rs:28:13 [INFO] [stderr] | [INFO] [stderr] 28 | let g = Global::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/globals.rs:30:9 [INFO] [stderr] | [INFO] [stderr] 30 | GlobalType::new(ValType::F32, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `GlobalType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/globals.rs:30:25 [INFO] [stderr] | [INFO] [stderr] 30 | GlobalType::new(ValType::F32, Mutability::Const), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Mutability` [INFO] [stderr] --> tests/globals.rs:30:39 [INFO] [stderr] | [INFO] [stderr] 30 | GlobalType::new(ValType::F32, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `Mutability` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/globals.rs:35:13 [INFO] [stderr] | [INFO] [stderr] 35 | let g = Global::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/globals.rs:37:9 [INFO] [stderr] | [INFO] [stderr] 37 | GlobalType::new(ValType::F64, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `GlobalType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/globals.rs:37:25 [INFO] [stderr] | [INFO] [stderr] 37 | GlobalType::new(ValType::F64, Mutability::Const), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Mutability` [INFO] [stderr] --> tests/globals.rs:37:39 [INFO] [stderr] | [INFO] [stderr] 37 | GlobalType::new(ValType::F64, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `Mutability` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/globals.rs:46:17 [INFO] [stderr] | [INFO] [stderr] 46 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/globals.rs:47:13 [INFO] [stderr] | [INFO] [stderr] 47 | let g = Global::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/globals.rs:49:9 [INFO] [stderr] | [INFO] [stderr] 49 | GlobalType::new(ValType::I32, Mutability::Var), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `GlobalType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/globals.rs:49:25 [INFO] [stderr] | [INFO] [stderr] 49 | GlobalType::new(ValType::I32, Mutability::Var), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Mutability` [INFO] [stderr] --> tests/globals.rs:49:39 [INFO] [stderr] | [INFO] [stderr] 49 | GlobalType::new(ValType::I32, Mutability::Var), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `Mutability` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/globals.rs:64:17 [INFO] [stderr] | [INFO] [stderr] 64 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/globals.rs:65:18 [INFO] [stderr] | [INFO] [stderr] 65 | let module = Module::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> tests/globals.rs:72:20 [INFO] [stderr] | [INFO] [stderr] 72 | let instance = Instance::new(&module, &[])?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> tests/globals.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | Instance::new(&module, &[])?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/import-indexes.rs:40:17 [INFO] [stderr] | [INFO] [stderr] 40 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/import-indexes.rs:41:18 [INFO] [stderr] | [INFO] [stderr] 41 | let module = Module::new(&store, WAT)?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Func` [INFO] [stderr] --> tests/import-indexes.rs:44:9 [INFO] [stderr] | [INFO] [stderr] 44 | Func::new( [INFO] [stderr] | ^^^^ use of undeclared type or module `Func` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `FuncType` [INFO] [stderr] --> tests/import-indexes.rs:46:13 [INFO] [stderr] | [INFO] [stderr] 46 | FuncType::new(Box::new([]), Box::new([ValType::I32])), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `FuncType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/import-indexes.rs:46:51 [INFO] [stderr] | [INFO] [stderr] 46 | FuncType::new(Box::new([]), Box::new([ValType::I32])), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Func` [INFO] [stderr] --> tests/import-indexes.rs:50:9 [INFO] [stderr] | [INFO] [stderr] 50 | Func::new( [INFO] [stderr] | ^^^^ use of undeclared type or module `Func` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `FuncType` [INFO] [stderr] --> tests/import-indexes.rs:52:13 [INFO] [stderr] | [INFO] [stderr] 52 | FuncType::new(Box::new([]), Box::new([ValType::F32])), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `FuncType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/import-indexes.rs:52:51 [INFO] [stderr] | [INFO] [stderr] 52 | FuncType::new(Box::new([]), Box::new([ValType::F32])), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> tests/import-indexes.rs:57:20 [INFO] [stderr] | [INFO] [stderr] 57 | let instance = Instance::new(&module, &imports)?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/import-indexes.rs:63:9 [INFO] [stderr] | [INFO] [stderr] 63 | Val::I32(n) => assert_eq!(n, 3), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Callable` in this scope [INFO] [stderr] --> tests/import-indexes.rs:20:10 [INFO] [stderr] | [INFO] [stderr] 20 | impl Callable for Ret1 { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Callable; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Val` in this scope [INFO] [stderr] --> tests/import-indexes.rs:21:34 [INFO] [stderr] | [INFO] [stderr] 21 | fn call(&self, params: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Val; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Val` in this scope [INFO] [stderr] --> tests/import-indexes.rs:21:55 [INFO] [stderr] | [INFO] [stderr] 21 | fn call(&self, params: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Val; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Trap` in this scope [INFO] [stderr] --> tests/import-indexes.rs:21:75 [INFO] [stderr] | [INFO] [stderr] 21 | fn call(&self, params: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Trap; [INFO] [stderr] | [INFO] [stderr] 1 | use wasmtime_runtime::Trap; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Callable` in this scope [INFO] [stderr] --> tests/import-indexes.rs:31:10 [INFO] [stderr] | [INFO] [stderr] 31 | impl Callable for Ret2 { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Callable; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Val` in this scope [INFO] [stderr] --> tests/import-indexes.rs:32:34 [INFO] [stderr] | [INFO] [stderr] 32 | fn call(&self, params: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Val; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Val` in this scope [INFO] [stderr] --> tests/import-indexes.rs:32:55 [INFO] [stderr] | [INFO] [stderr] 32 | fn call(&self, params: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Val; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Trap` in this scope [INFO] [stderr] --> tests/import-indexes.rs:32:75 [INFO] [stderr] | [INFO] [stderr] 32 | fn call(&self, params: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Trap; [INFO] [stderr] | [INFO] [stderr] 1 | use wasmtime_runtime::Trap; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: aborting due to 19 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> tests/func.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use wasmtime::{Callable, Func, FuncType, Instance, Module, Store, Trap, Val, ValType}; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> tests/invoke_func_via_table.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/invoke_func_via_table.rs:6:17 [INFO] [stderr] | [INFO] [stderr] 6 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/invoke_func_via_table.rs:16:18 [INFO] [stderr] | [INFO] [stderr] 16 | let module = Module::new(&store, wat).context("> Error compiling module!")?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> tests/invoke_func_via_table.rs:17:20 [INFO] [stderr] | [INFO] [stderr] 17 | let instance = Instance::new(&module, &[]).context("> Error instantiating module!")?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0432`. [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> examples/multi.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> tests/name.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/name.rs:5:17 [INFO] [stderr] | [INFO] [stderr] 5 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/name.rs:12:18 [INFO] [stderr] | [INFO] [stderr] 12 | let module = Module::new(&store, wat)?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/name.rs:20:17 [INFO] [stderr] | [INFO] [stderr] 20 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/name.rs:27:18 [INFO] [stderr] | [INFO] [stderr] 27 | let module = Module::new(&store, wat)?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/name.rs:30:18 [INFO] [stderr] | [INFO] [stderr] 30 | let module = Module::new_with_name(&store, wat, "override")?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:14:22 [INFO] [stderr] | [INFO] [stderr] 14 | results[0] = Val::I64(args[1].unwrap_i64() + 1); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:15:22 [INFO] [stderr] | [INFO] [stderr] 15 | results[1] = Val::I32(args[0].unwrap_i32() + 1); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Engine` [INFO] [stderr] --> examples/multi.rs:48:18 [INFO] [stderr] | [INFO] [stderr] 48 | let engine = Engine::new(Config::new().wasm_multi_value(true)); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Engine` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Config` [INFO] [stderr] --> examples/multi.rs:48:30 [INFO] [stderr] | [INFO] [stderr] 48 | let engine = Engine::new(Config::new().wasm_multi_value(true)); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Config` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> examples/multi.rs:49:17 [INFO] [stderr] | [INFO] [stderr] 49 | let store = Store::new(&engine); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> examples/multi.rs:53:18 [INFO] [stderr] | [INFO] [stderr] 53 | let module = Module::new(&store, WAT).context("Error compiling module!")?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `FuncType` [INFO] [stderr] --> examples/multi.rs:57:25 [INFO] [stderr] | [INFO] [stderr] 57 | let callback_type = FuncType::new( [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `FuncType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> examples/multi.rs:58:19 [INFO] [stderr] | [INFO] [stderr] 58 | Box::new([ValType::I32, ValType::I64]), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> examples/multi.rs:58:33 [INFO] [stderr] | [INFO] [stderr] 58 | Box::new([ValType::I32, ValType::I64]), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> examples/multi.rs:59:19 [INFO] [stderr] | [INFO] [stderr] 59 | Box::new([ValType::I64, ValType::I32]), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> examples/multi.rs:59:33 [INFO] [stderr] | [INFO] [stderr] 59 | Box::new([ValType::I64, ValType::I32]), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Func` [INFO] [stderr] --> examples/multi.rs:61:25 [INFO] [stderr] | [INFO] [stderr] 61 | let callback_func = Func::new(&store, callback_type, Rc::new(Callback)); [INFO] [stderr] | ^^^^ use of undeclared type or module `Func` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> examples/multi.rs:67:9 [INFO] [stderr] | [INFO] [stderr] 67 | Instance::new(&module, imports.as_slice()).context("Error instantiating module!")?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:80:21 [INFO] [stderr] | [INFO] [stderr] 80 | let args = vec![Val::I32(1), Val::I64(3)]; [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:80:34 [INFO] [stderr] | [INFO] [stderr] 80 | let args = vec![Val::I32(1), Val::I64(3)]; [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:94:9 [INFO] [stderr] | [INFO] [stderr] 94 | Val::I64(0), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:95:9 [INFO] [stderr] | [INFO] [stderr] 95 | Val::I64(1), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:96:9 [INFO] [stderr] | [INFO] [stderr] 96 | Val::I64(2), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:97:9 [INFO] [stderr] | [INFO] [stderr] 97 | Val::I64(3), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:98:9 [INFO] [stderr] | [INFO] [stderr] 98 | Val::I64(4), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:99:9 [INFO] [stderr] | [INFO] [stderr] 99 | Val::I64(5), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:100:9 [INFO] [stderr] | [INFO] [stderr] 100 | Val::I64(6), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:101:9 [INFO] [stderr] | [INFO] [stderr] 101 | Val::I64(7), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:102:9 [INFO] [stderr] | [INFO] [stderr] 102 | Val::I64(8), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:103:9 [INFO] [stderr] | [INFO] [stderr] 103 | Val::I64(9), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Callable` in this scope [INFO] [stderr] --> examples/multi.rs:9:6 [INFO] [stderr] | [INFO] [stderr] 9 | impl Callable for Callback { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use substrate_wasmtime::Callable; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Val` in this scope [INFO] [stderr] --> examples/multi.rs:10:28 [INFO] [stderr] | [INFO] [stderr] 10 | fn call(&self, args: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use substrate_wasmtime::Val; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Val` in this scope [INFO] [stderr] --> examples/multi.rs:10:49 [INFO] [stderr] | [INFO] [stderr] 10 | fn call(&self, args: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use substrate_wasmtime::Val; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Trap` in this scope [INFO] [stderr] --> examples/multi.rs:10:69 [INFO] [stderr] | [INFO] [stderr] 10 | fn call(&self, args: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use substrate_wasmtime::Trap; [INFO] [stderr] | [INFO] [stderr] 3 | use wasmtime_runtime::Trap; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: aborting due to 30 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] warning: unused import: `Context` [INFO] [stderr] --> tests/invoke_func_via_table.rs:1:14 [INFO] [stderr] | [INFO] [stderr] 1 | use anyhow::{Context as _, Result}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 31 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> examples/memory.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> examples/memory.rs:65:17 [INFO] [stderr] | [INFO] [stderr] 65 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> examples/memory.rs:87:18 [INFO] [stderr] | [INFO] [stderr] 87 | let module = Module::new(&store, &wat).context("> Error compiling module!")?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> examples/memory.rs:91:20 [INFO] [stderr] | [INFO] [stderr] 91 | let instance = Instance::new(&module, &[]).context("> Error instantiating module!")?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `MemoryType` [INFO] [stderr] --> examples/memory.rs:148:22 [INFO] [stderr] | [INFO] [stderr] 148 | let memorytype = MemoryType::new(Limits::new(5, Some(5))); [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `MemoryType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Limits` [INFO] [stderr] --> examples/memory.rs:148:38 [INFO] [stderr] | [INFO] [stderr] 148 | let memorytype = MemoryType::new(Limits::new(5, Some(5))); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Limits` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Memory` [INFO] [stderr] --> examples/memory.rs:149:19 [INFO] [stderr] | [INFO] [stderr] 149 | let memory2 = Memory::new(&store, memorytype); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Memory` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Extern` in this scope [INFO] [stderr] --> examples/memory.rs:6:33 [INFO] [stderr] | [INFO] [stderr] 6 | fn get_export_memory(exports: &[Extern], i: usize) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a trait with a similar name exists [INFO] [stderr] | [INFO] [stderr] 6 | fn get_export_memory(exports: &[Extend], i: usize) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use substrate_wasmtime::Extern; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Memory` in this scope [INFO] [stderr] --> examples/memory.rs:6:62 [INFO] [stderr] | [INFO] [stderr] 6 | fn get_export_memory(exports: &[Extern], i: usize) -> Result { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use substrate_wasmtime::Memory; [INFO] [stderr] | [INFO] [stderr] 3 | use wasmtime_environ::wasm::Memory; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Extern` in this scope [INFO] [stderr] --> examples/memory.rs:16:31 [INFO] [stderr] | [INFO] [stderr] 16 | fn get_export_func(exports: &[Extern], i: usize) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a trait with a similar name exists [INFO] [stderr] | [INFO] [stderr] 16 | fn get_export_func(exports: &[Extend], i: usize) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use substrate_wasmtime::Extern; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Func` in this scope [INFO] [stderr] --> examples/memory.rs:16:60 [INFO] [stderr] | [INFO] [stderr] 16 | fn get_export_func(exports: &[Extern], i: usize) -> Result { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use substrate_wasmtime::Func; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: unused import: `Context` [INFO] [stderr] --> examples/memory.rs:3:28 [INFO] [stderr] | [INFO] [stderr] 3 | use anyhow::{bail, ensure, Context as _, Error}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 11 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "5d42e6abb45efa4bc46ed243aa49e776c3ada7bff69a01b99171c165224ca7d6"` [INFO] running `"docker" "rm" "-f" "5d42e6abb45efa4bc46ed243aa49e776c3ada7bff69a01b99171c165224ca7d6"` [INFO] [stdout] 5d42e6abb45efa4bc46ed243aa49e776c3ada7bff69a01b99171c165224ca7d6