Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build the project and run the tests following CONTRIBUTING.md #7870

Closed
Havunen opened this issue Aug 25, 2023 · 5 comments
Closed

Can't build the project and run the tests following CONTRIBUTING.md #7870

Havunen opened this issue Aug 25, 2023 · 5 comments
Labels
Milestone

Comments

@Havunen
Copy link

Havunen commented Aug 25, 2023

Describe the bug

I can't build and successfully execute all the tests in the project when following the documentation here: https://github.com/swc-project/swc/blob/main/CONTRIBUTING.md

My environment:

node --version
v20.5.1


deno --version
deno 1.34.1 (release, x86_64-unknown-linux-gnu)
v8 11.5.150.2
typescript 5.0.4


uname -a
Linux linuxdesk 6.4.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 11 Aug 2023 11:03:36 +0000 x86_64 GNU/Linux


rustup --version
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.71.0 (8ede3aae2 2023-07-12)`


yarn --version
1.22.19

I start by cloning this repository.

git clone https://github.com/swc-project/swc.git

next I navigate into the folder and run

git submodule update --init --recursive

next in the documentation it tells to run yarn and I noticed the lockfile is for v3 so I change the yarn version using command

yarn set version stable
yarn --version
3.6.3

Then I run yarn as recommended in the doc.

Next I set the env vars.

export RUST_BACKTRACE=full
export PATH="$PATH:$PWD/node_modules/.bin"
export RUST_MIN_STACK=16777216

and run:

rustup target add wasm32-wasi

info: component 'rust-std' for target 'wasm32-wasi' is up to date

then I run the following command to execute all the tests:

cargo test --all --no-default-features --features swc_v1 --features filesystem_cache

but that command fails. Here is full log:

   Compiling proc-macro2 v1.0.60
   Compiling quote v1.0.28
   Compiling libc v0.2.146
   Compiling autocfg v1.1.0
( COMPILING .... )
   Compiling tokio-native-tls v0.3.0
   Compiling virtual-fs v0.6.0
   Compiling h2 v0.3.18
   Compiling addr2line v0.17.0
   Compiling miette v4.2.1
   Compiling wasmer-vm v4.0.0
   Compiling wasmer-compiler v4.0.0
   Compiling hyper v0.14.26
   Compiling wasmer v4.0.0
error: One of: `sys`, `js` or `jsc` features must be enabled. Please, pick one.
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/lib.rs:401:1
    |
401 | compile_error!("One of: `sys`, `js` or `jsc` features must be enabled. Please, pick one.");
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved import `crate::vm::VMExternRef`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/extern_ref.rs:11:5
   |
11 | use crate::vm::VMExternRef;
   |     ^^^^^^^^^^^^^^^^^^^^^^ no `VMExternRef` in `vm`
   |
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:5:65
   |
5  |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                                 ^^^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:11:65
   |
11 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                                 ^^^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:17:65
   |
17 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                                 ^^^^^^^^^^^
   = note: the item is gated behind the `sys` feature
help: consider importing this struct instead
   |
11 | use wasmer_vm::VMExternRef;
   |     ~~~~~~~~~~~~~~~~~~~~~~

error[E0432]: unresolved imports `crate::vm::VMExtern`, `crate::vm::VMExternFunction`, `crate::vm::VMFuncRef`, `crate::vm::VMFunctionCallback`, `crate::vm::VMTrampoline`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/function.rs:10:17
   |
10 | use crate::vm::{VMExtern, VMExternFunction, VMFuncRef, VMFunctionCallback, VMTrampoline};
   |                 ^^^^^^^^  ^^^^^^^^^^^^^^^^  ^^^^^^^^^  ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^ no `VMTrampoline` in `vm`
   |                 |         |                 |          |
   |                 |         |                 |          no `VMFunctionCallback` in `vm`
   |                 |         |                 no `VMFuncRef` in `vm`
   |                 |         no `VMExternFunction` in `vm`
   |                 no `VMExtern` in `vm`
   |
   = help: consider importing this enum instead:
           wasmer_vm::VMExtern
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:5:5
   |
5  |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |     ^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:11:5
   |
11 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |     ^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:17:5
   |
17 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |     ^^^^^^^^
   = note: the item is gated behind the `sys` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:5:15
   |
5  |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |               ^^^^^^^^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:11:15
   |
11 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |               ^^^^^^^^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:17:15
   |
17 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |               ^^^^^^^^^^^^^^^^
   = note: the item is gated behind the `sys` feature
   = help: consider importing this struct instead:
           wasmer_vm::VMFuncRef
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:6:5
   |
6  |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |     ^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:12:5
   |
12 |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |     ^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:18:5
   |
18 |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |     ^^^^^^^^^
   = note: the item is gated behind the `sys` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:6:16
   |
6  |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |                ^^^^^^^^^^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:12:16
   |
12 |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |                ^^^^^^^^^^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:18:16
   |
18 |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |                ^^^^^^^^^^^^^^^^^^
   = note: the item is gated behind the `sys` feature
   = help: consider importing this type alias instead:
           wasmer_vm::VMTrampoline
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:6:71
   |
6  |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |                                                                       ^^^^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:12:71
   |
12 |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |                                                                       ^^^^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:18:71
   |
18 |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |                                                                       ^^^^^^^^^^^^
   = note: the item is gated behind the `sys` feature

error[E0432]: unresolved import `crate::vm::VMExtern`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/global.rs:4:5
   |
4  | use crate::vm::VMExtern;
   |     ^^^^^^^^^^^^^^^^^^^ no `VMExtern` in `vm`
   |
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:5:5
   |
5  |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |     ^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:11:5
   |
11 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |     ^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:17:5
   |
17 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |     ^^^^^^^^
   = note: the item is gated behind the `sys` feature
help: consider importing this enum instead
   |
4  | use wasmer_vm::VMExtern;
   |     ~~~~~~~~~~~~~~~~~~~

error[E0432]: unresolved import `crate::vm::VMExternGlobal`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/global.rs:5:5
   |
5  | use crate::vm::VMExternGlobal;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ no `VMExternGlobal` in `vm`
   |
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:5:33
   |
5  |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                 ^^^^^^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:11:33
   |
11 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                 ^^^^^^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:17:33
   |
17 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                 ^^^^^^^^^^^^^^
   = note: the item is gated behind the `sys` feature

error[E0432]: unresolved imports `crate::vm::VMExtern`, `crate::vm::VMExternMemory`, `crate::vm::VMMemory`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/memory.rs:11:17
   |
11 | use crate::vm::{VMExtern, VMExternMemory, VMMemory};
   |                 ^^^^^^^^  ^^^^^^^^^^^^^^  ^^^^^^^^ no `VMMemory` in `vm`
   |                 |         |
   |                 |         no `VMExternMemory` in `vm`
   |                 no `VMExtern` in `vm`
   |
   = help: consider importing this enum instead:
           wasmer_vm::VMExtern
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:5:5
   |
5  |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |     ^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:11:5
   |
11 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |     ^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:17:5
   |
17 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |     ^^^^^^^^
   = note: the item is gated behind the `sys` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:5:49
   |
5  |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                 ^^^^^^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:11:49
   |
11 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                 ^^^^^^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:17:49
   |
17 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                 ^^^^^^^^^^^^^^
   = note: the item is gated behind the `sys` feature
   = help: consider importing this struct instead:
           wasmer_vm::VMMemory
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:22:47
   |
22 | pub use crate::js::vm::{VMFunction, VMGlobal, VMMemory, VMSharedMemory, VMTable};
   |                                               ^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:25:53
   |
25 | pub use wasmer_vm::{VMConfig, VMFunction, VMGlobal, VMMemory, VMSharedMemory, VMTable};
   |                                                     ^^^^^^^^
   = note: the item is gated behind the `sys` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:28:48
   |
28 | pub use crate::jsc::vm::{VMFunction, VMGlobal, VMMemory, VMSharedMemory, VMTable};
   |                                                ^^^^^^^^
   = note: the item is gated behind the `jsc` feature

error[E0432]: unresolved imports `crate::vm::VMExtern`, `crate::vm::VMExternTable`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/table.rs:10:17
   |
10 | use crate::vm::{VMExtern, VMExternTable};
   |                 ^^^^^^^^  ^^^^^^^^^^^^^ no `VMExternTable` in `vm`
   |                 |
   |                 no `VMExtern` in `vm`
   |
   = help: consider importing this enum instead:
           wasmer_vm::VMExtern
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:5:5
   |
5  |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |     ^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:11:5
   |
11 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |     ^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:17:5
   |
17 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |     ^^^^^^^^
   = note: the item is gated behind the `sys` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:5:78
   |
5  |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                                              ^^^^^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:11:78
   |
11 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                                              ^^^^^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:17:78
   |
17 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                                              ^^^^^^^^^^^^^
   = note: the item is gated behind the `sys` feature

error[E0432]: unresolved import `crate::vm::VMFunctionEnvironment`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/function_env.rs:3:5
   |
3  | use crate::vm::VMFunctionEnvironment;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `VMFunctionEnvironment` in `vm`
   |
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:6:36
   |
6  |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |                                    ^^^^^^^^^^^^^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:12:36
   |
12 |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |                                    ^^^^^^^^^^^^^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:18:36
   |
18 |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |                                    ^^^^^^^^^^^^^^^^^^^^^
   = note: the item is gated behind the `sys` feature
help: consider importing this struct instead
   |
3  | use wasmer_vm::VMFunctionEnvironment;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0432]: unresolved imports `crate::vm::VMExternRef`, `crate::vm::VMFuncRef`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/native_type.rs:7:17
   |
7  | use crate::vm::{VMExternRef, VMFuncRef};
   |                 ^^^^^^^^^^^  ^^^^^^^^^ no `VMFuncRef` in `vm`
   |                 |
   |                 no `VMExternRef` in `vm`
   |
   = help: consider importing this struct instead:
           wasmer_vm::VMExternRef
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:5:65
   |
5  |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                                 ^^^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:11:65
   |
11 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                                 ^^^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:17:65
   |
17 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                                 ^^^^^^^^^^^
   = note: the item is gated behind the `sys` feature
   = help: consider importing this struct instead:
           wasmer_vm::VMFuncRef
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:6:5
   |
6  |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |     ^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:12:5
   |
12 |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |     ^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:18:5
   |
18 |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |     ^^^^^^^^^
   = note: the item is gated behind the `sys` feature

error[E0432]: unresolved imports `crate::vm::VMExternRef`, `crate::vm::VMFuncRef`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/value.rs:7:17
   |
7  | use crate::vm::{VMExternRef, VMFuncRef};
   |                 ^^^^^^^^^^^  ^^^^^^^^^ no `VMFuncRef` in `vm`
   |                 |
   |                 no `VMExternRef` in `vm`
   |
   = help: consider importing this struct instead:
           wasmer_vm::VMExternRef
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:5:65
   |
5  |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                                 ^^^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:11:65
   |
11 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                                 ^^^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:17:65
   |
17 |     VMExtern, VMExternFunction, VMExternGlobal, VMExternMemory, VMExternRef, VMExternTable,
   |                                                                 ^^^^^^^^^^^
   = note: the item is gated behind the `sys` feature
   = help: consider importing this struct instead:
           wasmer_vm::VMFuncRef
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:6:5
   |
6  |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |     ^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:12:5
   |
12 |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |     ^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/vm.rs:18:5
   |
18 |     VMFuncRef, VMFunctionCallback, VMFunctionEnvironment, VMInstance, VMTrampoline,
   |     ^^^^^^^^^
   = note: the item is gated behind the `sys` feature

error[E0432]: unresolved imports `crate::store::StoreHandle`, `crate::store::StoreObjects`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/function_env.rs:5:44
   |
5  | use crate::store::{AsStoreMut, AsStoreRef, StoreHandle, StoreMut, StoreObjects, StoreRef};
   |                                            ^^^^^^^^^^^            ^^^^^^^^^^^^ no `StoreObjects` in `store`
   |                                            |
   |                                            no `StoreHandle` in `store`
   |
   = help: consider importing this struct instead:
           wasmer_vm::StoreHandle
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/store.rs:16:21
   |
16 | pub use wasmer_vm::{StoreHandle, StoreObjects};
   |                     ^^^^^^^^^^^
   = note: the item is gated behind the `sys` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/store.rs:19:28
   |
19 | pub use crate::js::store::{StoreHandle, StoreObjects};
   |                            ^^^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/store.rs:22:29
   |
22 | pub use crate::jsc::store::{StoreHandle, StoreObjects};
   |                             ^^^^^^^^^^^
   = note: the item is gated behind the `jsc` feature
   = help: consider importing this struct instead:
           wasmer_vm::StoreObjects
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/store.rs:16:34
   |
16 | pub use wasmer_vm::{StoreHandle, StoreObjects};
   |                                  ^^^^^^^^^^^^
   = note: the item is gated behind the `sys` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/store.rs:19:41
   |
19 | pub use crate::js::store::{StoreHandle, StoreObjects};
   |                                         ^^^^^^^^^^^^
   = note: the item is gated behind the `js` feature
note: found an item that was configured out
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/store.rs:22:42
   |
22 | pub use crate::jsc::store::{StoreHandle, StoreObjects};
   |                                          ^^^^^^^^^^^^
   = note: the item is gated behind the `jsc` feature

error: cannot find attribute `source` in this scope
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/errors.rs:30:12
   |
30 |     Trap(#[source] RuntimeError),
   |            ^^^^^^

   Compiling swc_error_reporters v0.16.0 (/home/sampo/git/swc/crates/swc_error_reporters)
   Compiling swc_fast_graph v0.20.0 (/home/sampo/git/swc/crates/swc_fast_graph)
   Compiling swc_ecma_loader v0.44.2 (/home/sampo/git/swc/crates/swc_ecma_loader)
   Compiling swc_css_ast v0.139.0 (/home/sampo/git/swc/crates/swc_css_ast)
   Compiling swc_node_comments v0.19.0 (/home/sampo/git/swc/crates/swc_node_comments)
   Compiling swc_html_ast v0.32.0 (/home/sampo/git/swc/crates/swc_html_ast)
   Compiling swc_html_utils v0.17.0 (/home/sampo/git/swc/crates/swc_html_utils)
error[E0412]: cannot find type `Trap` in this scope
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/errors.rs:103:24
    |
103 |     pub(crate) source: Trap,
    |                        ^^^^ not found in this scope
    |
help: consider importing this enum
    |
5   + use wasmer_vm::Trap;
    |

error[E0412]: cannot find type `Trap` in this scope
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/errors.rs:139:17
    |
139 |         source: Trap,
    |                 ^^^^ not found in this scope
    |
help: consider importing this enum
    |
5   + use wasmer_vm::Trap;
    |

error[E0433]: failed to resolve: use of undeclared type `Trap`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/errors.rs:261:27
    |
261 |             Err(error) => Trap::user(error).into(),
    |                           ^^^^ use of undeclared type `Trap`
    |
help: consider importing this enum
    |
5   + use wasmer_vm::Trap;
    |

error[E0433]: failed to resolve: use of undeclared crate or module `extern_ref_imp`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/extern_ref.rs:24:14
   |
24 |         Self(extern_ref_imp::ExternRef::new(store, value))
   |              ^^^^^^^^^^^^^^ use of undeclared crate or module `extern_ref_imp`
   |
help: there is a crate or module with a similar name
   |
24 |         Self(extern_ref::ExternRef::new(store, value))
   |              ~~~~~~~~~~
help: consider importing this struct through its public re-export
   |
1  + use crate::ExternRef;
   |
help: if you import `ExternRef`, refer to it directly
   |
24 -         Self(extern_ref_imp::ExternRef::new(store, value))
24 +         Self(ExternRef::new(store, value))
   |

error[E0433]: failed to resolve: use of undeclared crate or module `extern_ref_imp`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/extern_ref.rs:43:14
   |
43 |         Self(extern_ref_imp::ExternRef::from_vm_externref(
   |              ^^^^^^^^^^^^^^ use of undeclared crate or module `extern_ref_imp`
   |
help: there is a crate or module with a similar name
   |
43 |         Self(extern_ref::ExternRef::from_vm_externref(
   |              ~~~~~~~~~~
help: consider importing this struct through its public re-export
   |
1  + use crate::ExternRef;
   |
help: if you import `ExternRef`, refer to it directly
   |
43 -         Self(extern_ref_imp::ExternRef::from_vm_externref(
43 +         Self(ExternRef::from_vm_externref(
   |

error[E0433]: failed to resolve: use of undeclared crate or module `function_impl`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/function.rs:156:14
    |
156 |         Self(function_impl::Function::new_with_env(store, env, ty, func))
    |              ^^^^^^^^^^^^^ use of undeclared crate or module `function_impl`
    |
help: consider importing this struct through its public re-export
    |
8   + use crate::Function;
    |
help: if you import `Function`, refer to it directly
    |
156 -         Self(function_impl::Function::new_with_env(store, env, ty, func))
156 +         Self(Function::new_with_env(store, env, ty, func))
    |

error[E0433]: failed to resolve: use of undeclared crate or module `function_impl`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/function.rs:166:14
    |
166 |         Self(function_impl::Function::new_typed(store, func))
    |              ^^^^^^^^^^^^^ use of undeclared crate or module `function_impl`
    |
help: consider importing this struct through its public re-export
    |
8   + use crate::Function;
    |
help: if you import `Function`, refer to it directly
    |
166 -         Self(function_impl::Function::new_typed(store, func))
166 +         Self(Function::new_typed(store, func))
    |

error[E0433]: failed to resolve: use of undeclared crate or module `function_impl`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/function.rs:197:14
    |
197 |         Self(function_impl::Function::new_typed_with_env(
    |              ^^^^^^^^^^^^^ use of undeclared crate or module `function_impl`
    |
help: consider importing this struct through its public re-export
    |
8   + use crate::Function;
    |
help: if you import `Function`, refer to it directly
    |
197 -         Self(function_impl::Function::new_typed_with_env(
197 +         Self(Function::new_typed_with_env(
    |

error[E0433]: failed to resolve: use of undeclared crate or module `function_impl`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/function.rs:320:14
    |
320 |         Self(function_impl::Function::from_vm_funcref(store, funcref))
    |              ^^^^^^^^^^^^^ use of undeclared crate or module `function_impl`
    |
help: consider importing this struct through its public re-export
    |
8   + use crate::Function;
    |
help: if you import `Function`, refer to it directly
    |
320 -         Self(function_impl::Function::from_vm_funcref(store, funcref))
320 +         Self(Function::from_vm_funcref(store, funcref))
    |

   Compiling swc_xml_ast v0.11.0 (/home/sampo/git/swc/crates/swc_xml_ast)
   Compiling swc_estree_ast v0.22.0 (/home/sampo/git/swc/crates/swc_estree_ast)
   Compiling jsdoc v0.107.0 (/home/sampo/git/swc/crates/jsdoc)
error[E0433]: failed to resolve: use of undeclared crate or module `function_impl`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/function.rs:446:14
    |
446 |         Self(function_impl::Function::from_vm_extern(store, vm_extern))
    |              ^^^^^^^^^^^^^ use of undeclared crate or module `function_impl`
    |
help: consider importing this struct through its public re-export
    |
8   + use crate::Function;
    |
help: if you import `Function`, refer to it directly
    |
446 -         Self(function_impl::Function::from_vm_extern(store, vm_extern))
446 +         Self(Function::from_vm_extern(store, vm_extern))
    |

error[E0433]: failed to resolve: use of undeclared crate or module `global_impl`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/global.rs:68:17
   |
68 |         Ok(Self(global_impl::Global::from_value(
   |                 ^^^^^^^^^^^ use of undeclared crate or module `global_impl`
   |
help: consider importing one of these items
   |
1  + use crate::Global;
   |
1  + use std::alloc::Global;
   |
help: if you import `Global`, refer to it directly
   |
68 -         Ok(Self(global_impl::Global::from_value(
68 +         Ok(Self(Global::from_value(
   |

error[E0433]: failed to resolve: use of undeclared crate or module `global_impl`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/global.rs:153:14
    |
153 |         Self(global_impl::Global::from_vm_extern(store, vm_extern))
    |              ^^^^^^^^^^^ use of undeclared crate or module `global_impl`
    |
help: consider importing one of these items
    |
1   + use crate::Global;
    |
1   + use std::alloc::Global;
    |
help: if you import `Global`, refer to it directly
    |
153 -         Self(global_impl::Global::from_vm_extern(store, vm_extern))
153 +         Self(Global::from_vm_extern(store, vm_extern))
    |

error[E0433]: failed to resolve: use of undeclared crate or module `memory_impl`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/memory.rs:50:17
   |
50 |         Ok(Self(memory_impl::Memory::new(store, ty)?))
   |                 ^^^^^^^^^^^ use of undeclared crate or module `memory_impl`
   |
help: consider importing this struct through its public re-export
   |
8  + use crate::Memory;
   |
help: if you import `Memory`, refer to it directly
   |
50 -         Ok(Self(memory_impl::Memory::new(store, ty)?))
50 +         Ok(Self(Memory::new(store, ty)?))
   |

error[E0433]: failed to resolve: use of undeclared crate or module `memory_impl`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/memory.rs:55:14
   |
55 |         Self(memory_impl::Memory::new_from_existing(new_store, memory))
   |              ^^^^^^^^^^^ use of undeclared crate or module `memory_impl`
   |
help: consider importing this struct through its public re-export
   |
8  + use crate::Memory;
   |
help: if you import `Memory`, refer to it directly
   |
55 -         Self(memory_impl::Memory::new_from_existing(new_store, memory))
55 +         Self(Memory::new_from_existing(new_store, memory))
   |

error[E0433]: failed to resolve: use of undeclared crate or module `memory_impl`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/memory.rs:143:14
    |
143 |         Self(memory_impl::Memory::from_vm_extern(store, vm_extern))
    |              ^^^^^^^^^^^ use of undeclared crate or module `memory_impl`
    |
help: consider importing this struct through its public re-export
    |
8   + use crate::Memory;
    |
help: if you import `Memory`, refer to it directly
    |
143 -         Self(memory_impl::Memory::from_vm_extern(store, vm_extern))
143 +         Self(Memory::from_vm_extern(store, vm_extern))
    |

error[E0433]: failed to resolve: use of undeclared crate or module `memory_view_impl`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/memory_view.rs:25:20
   |
25 |         MemoryView(memory_view_impl::MemoryView::new(&memory.0, store))
   |                    ^^^^^^^^^^^^^^^^ use of undeclared crate or module `memory_view_impl`
   |
help: there is a crate or module with a similar name
   |
25 |         MemoryView(memory_view::MemoryView::new(&memory.0, store))
   |                    ~~~~~~~~~~~
help: consider importing this struct through its public re-export
   |
1  + use crate::MemoryView;
   |
help: if you import `MemoryView`, refer to it directly
   |
25 -         MemoryView(memory_view_impl::MemoryView::new(&memory.0, store))
25 +         MemoryView(MemoryView::new(&memory.0, store))
   |

error[E0433]: failed to resolve: use of undeclared crate or module `table_impl`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/table.rs:40:17
   |
40 |         Ok(Self(table_impl::Table::new(store, ty, init)?))
   |                 ^^^^^^^^^^ use of undeclared crate or module `table_impl`
   |
help: consider importing this struct through its public re-export
   |
8  + use crate::Table;
   |
help: if you import `Table`, refer to it directly
   |
40 -         Ok(Self(table_impl::Table::new(store, ty, init)?))
40 +         Ok(Self(Table::new(store, ty, init)?))
   |

error[E0433]: failed to resolve: use of undeclared crate or module `table_impl`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/table.rs:101:9
    |
101 |         table_impl::Table::copy(store, &dst_table.0, dst_index, &src_table.0, src_index, len)
    |         ^^^^^^^^^^ use of undeclared crate or module `table_impl`
    |
help: consider importing this struct through its public re-export
    |
8   + use crate::Table;
    |
help: if you import `Table`, refer to it directly
    |
101 -         table_impl::Table::copy(store, &dst_table.0, dst_index, &src_table.0, src_index, len)
101 +         Table::copy(store, &dst_table.0, dst_index, &src_table.0, src_index, len)
    |

error[E0433]: failed to resolve: use of undeclared crate or module `table_impl`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/table.rs:105:14
    |
105 |         Self(table_impl::Table::from_vm_extern(store, extern_))
    |              ^^^^^^^^^^ use of undeclared crate or module `table_impl`
    |
help: consider importing this struct through its public re-export
    |
8   + use crate::Table;
    |
help: if you import `Table`, refer to it directly
    |
105 -         Self(table_impl::Table::from_vm_extern(store, extern_))
105 +         Self(Table::from_vm_extern(store, extern_))
    |

error[E0412]: cannot find type `VMExtern` in this scope
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/mod.rs:54:67
   |
31 | pub enum Extern {
   | --------------- similarly named enum `Extern` defined here
...
54 |     pub fn from_vm_extern(store: &mut impl AsStoreMut, vm_extern: VMExtern) -> Self {
   |                                                                   ^^^^^^^^
   |
help: an enum with a similar name exists
   |
54 |     pub fn from_vm_extern(store: &mut impl AsStoreMut, vm_extern: Extern) -> Self {
   |                                                                   ~~~~~~
help: consider importing this enum
   |
7  + use wasmer_vm::VMExtern;
   |

error[E0433]: failed to resolve: use of undeclared type `VMExtern`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/mod.rs:56:13
   |
56 |             VMExtern::Function(f) => Self::Function(Function::from_vm_extern(store, f)),
   |             ^^^^^^^^ use of undeclared type `VMExtern`
   |
help: an enum with a similar name exists
   |
56 |             Extern::Function(f) => Self::Function(Function::from_vm_extern(store, f)),
   |             ~~~~~~
help: consider importing this enum
   |
7  + use wasmer_vm::VMExtern;
   |

error[E0433]: failed to resolve: use of undeclared type `VMExtern`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/mod.rs:57:13
   |
57 |             VMExtern::Memory(m) => Self::Memory(Memory::from_vm_extern(store, m)),
   |             ^^^^^^^^ use of undeclared type `VMExtern`
   |
help: an enum with a similar name exists
   |
57 |             Extern::Memory(m) => Self::Memory(Memory::from_vm_extern(store, m)),
   |             ~~~~~~
help: consider importing this enum
   |
7  + use wasmer_vm::VMExtern;
   |

error[E0433]: failed to resolve: use of undeclared type `VMExtern`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/mod.rs:58:13
   |
58 |             VMExtern::Global(g) => Self::Global(Global::from_vm_extern(store, g)),
   |             ^^^^^^^^ use of undeclared type `VMExtern`
   |
help: an enum with a similar name exists
   |
58 |             Extern::Global(g) => Self::Global(Global::from_vm_extern(store, g)),
   |             ~~~~~~
help: consider importing this enum
   |
7  + use wasmer_vm::VMExtern;
   |

error[E0433]: failed to resolve: use of undeclared type `VMExtern`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/mod.rs:59:13
   |
59 |             VMExtern::Table(t) => Self::Table(Table::from_vm_extern(store, t)),
   |             ^^^^^^^^ use of undeclared type `VMExtern`
   |
help: an enum with a similar name exists
   |
59 |             Extern::Table(t) => Self::Table(Table::from_vm_extern(store, t)),
   |             ~~~~~~
help: consider importing this enum
   |
7  + use wasmer_vm::VMExtern;
   |

error[E0412]: cannot find type `VMExtern` in this scope
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/mod.rs:74:35
   |
31 | pub enum Extern {
   | --------------- similarly named enum `Extern` defined here
...
74 |     pub fn to_vm_extern(&self) -> VMExtern {
   |                                   ^^^^^^^^
   |
help: an enum with a similar name exists
   |
74 |     pub fn to_vm_extern(&self) -> Extern {
   |                                   ~~~~~~
help: consider importing this enum
   |
7  + use wasmer_vm::VMExtern;
   |

error[E0433]: failed to resolve: use of undeclared crate or module `instance_imp`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/instance.rs:69:33
   |
69 |         let (_inner, exports) = instance_imp::Instance::new(store, module, imports)?;
   |                                 ^^^^^^^^^^^^ use of undeclared crate or module `instance_imp`
   |
help: there is a crate or module with a similar name
   |
69 |         let (_inner, exports) = instance::Instance::new(store, module, imports)?;
   |                                 ~~~~~~~~
help: consider importing this struct through its public re-export
   |
1  + use crate::Instance;
   |
help: if you import `Instance`, refer to it directly
   |
69 -         let (_inner, exports) = instance_imp::Instance::new(store, module, imports)?;
69 +         let (_inner, exports) = Instance::new(store, module, imports)?;
   |

error[E0433]: failed to resolve: use of undeclared crate or module `instance_imp`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/instance.rs:93:33
   |
93 |         let (_inner, exports) = instance_imp::Instance::new_by_index(store, module, externs)?;
   |                                 ^^^^^^^^^^^^ use of undeclared crate or module `instance_imp`
   |
help: there is a crate or module with a similar name
   |
93 |         let (_inner, exports) = instance::Instance::new_by_index(store, module, externs)?;
   |                                 ~~~~~~~~
help: consider importing this struct through its public re-export
   |
1  + use crate::Instance;
   |
help: if you import `Instance`, refer to it directly
   |
93 -         let (_inner, exports) = instance_imp::Instance::new_by_index(store, module, externs)?;
93 +         let (_inner, exports) = Instance::new_by_index(store, module, externs)?;
   |

error[E0433]: failed to resolve: use of undeclared crate or module `module_imp`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/module.rs:149:17
    |
149 |         Ok(Self(module_imp::Module::from_binary(engine, binary)?))
    |                 ^^^^^^^^^^ use of undeclared crate or module `module_imp`
    |
help: consider importing this struct through its public re-export
    |
1   + use crate::Module;
    |
help: if you import `Module`, refer to it directly
    |
149 -         Ok(Self(module_imp::Module::from_binary(engine, binary)?))
149 +         Ok(Self(Module::from_binary(engine, binary)?))
    |

error[E0433]: failed to resolve: use of undeclared crate or module `module_imp`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/module.rs:164:17
    |
164 |         Ok(Self(module_imp::Module::from_binary_unchecked(
    |                 ^^^^^^^^^^ use of undeclared crate or module `module_imp`
    |
help: consider importing this struct through its public re-export
    |
1   + use crate::Module;
    |
help: if you import `Module`, refer to it directly
    |
164 -         Ok(Self(module_imp::Module::from_binary_unchecked(
164 +         Ok(Self(Module::from_binary_unchecked(
    |

error[E0433]: failed to resolve: use of undeclared crate or module `module_imp`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/module.rs:176:9
    |
176 |         module_imp::Module::validate(engine, binary)
    |         ^^^^^^^^^^ use of undeclared crate or module `module_imp`
    |
help: consider importing this struct through its public re-export
    |
1   + use crate::Module;
    |
help: if you import `Module`, refer to it directly
    |
176 -         module_imp::Module::validate(engine, binary)
176 +         Module::validate(engine, binary)
    |

error[E0433]: failed to resolve: use of undeclared crate or module `module_imp`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/module.rs:257:17
    |
257 |         Ok(Self(module_imp::Module::deserialize_unchecked(
    |                 ^^^^^^^^^^ use of undeclared crate or module `module_imp`
    |
help: consider importing this struct through its public re-export
    |
1   + use crate::Module;
    |
help: if you import `Module`, refer to it directly
    |
257 -         Ok(Self(module_imp::Module::deserialize_unchecked(
257 +         Ok(Self(Module::deserialize_unchecked(
    |

error[E0433]: failed to resolve: use of undeclared crate or module `module_imp`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/module.rs:291:17
    |
291 |         Ok(Self(module_imp::Module::deserialize(engine, bytes)?))
    |                 ^^^^^^^^^^ use of undeclared crate or module `module_imp`
    |
help: consider importing this struct through its public re-export
    |
1   + use crate::Module;
    |
help: if you import `Module`, refer to it directly
    |
291 -         Ok(Self(module_imp::Module::deserialize(engine, bytes)?))
291 +         Ok(Self(Module::deserialize(engine, bytes)?))
    |

error[E0433]: failed to resolve: use of undeclared crate or module `module_imp`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/module.rs:315:17
    |
315 |         Ok(Self(module_imp::Module::deserialize_from_file(
    |                 ^^^^^^^^^^ use of undeclared crate or module `module_imp`
    |
help: consider importing this struct through its public re-export
    |
1   + use crate::Module;
    |
help: if you import `Module`, refer to it directly
    |
315 -         Ok(Self(module_imp::Module::deserialize_from_file(
315 +         Ok(Self(Module::deserialize_from_file(
    |

error[E0433]: failed to resolve: use of undeclared crate or module `module_imp`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/module.rs:343:17
    |
343 |         Ok(Self(module_imp::Module::deserialize_from_file_unchecked(
    |                 ^^^^^^^^^^ use of undeclared crate or module `module_imp`
    |
help: consider importing this struct through its public re-export
    |
1   + use crate::Module;
    |
help: if you import `Module`, refer to it directly
    |
343 -         Ok(Self(module_imp::Module::deserialize_from_file_unchecked(
343 +         Ok(Self(Module::deserialize_from_file_unchecked(
    |

error[E0412]: cannot find type `StoreObjects` in this scope
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/store.rs:36:25
   |
36 |     pub(crate) objects: StoreObjects,
   |                         ^^^^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
1  + use wasmer_vm::StoreObjects;
   |

error[E0412]: cannot find type `StoreObjects` in this scope
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/store.rs:129:39
    |
129 |     fn objects_mut(&mut self) -> &mut StoreObjects {
    |                                       ^^^^^^^^^^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use wasmer_vm::StoreObjects;
    |

error[E0412]: cannot find type `StoreObjects` in this scope
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/store.rs:165:41
    |
165 |     pub(crate) fn objects(&self) -> &'a StoreObjects {
    |                                         ^^^^^^^^^^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use wasmer_vm::StoreObjects;
    |

error[E0412]: cannot find type `StoreObjects` in this scope
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/store.rs:209:71
    |
209 |     pub(crate) fn engine_and_objects_mut(&mut self) -> (&Engine, &mut StoreObjects) {
    |                                                                       ^^^^^^^^^^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use wasmer_vm::StoreObjects;
    |

error[E0412]: cannot find type `StoreObjects` in this scope
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/store.rs:246:39
    |
246 |     fn objects_mut(&mut self) -> &mut StoreObjects;
    |                                       ^^^^^^^^^^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use wasmer_vm::StoreObjects;
    |

error[E0412]: cannot find type `StoreObjects` in this scope
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/store.rs:264:39
    |
264 |     fn objects_mut(&mut self) -> &mut StoreObjects {
    |                                       ^^^^^^^^^^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use wasmer_vm::StoreObjects;
    |

error[E0412]: cannot find type `StoreObjects` in this scope
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/store.rs:288:39
    |
288 |     fn objects_mut(&mut self) -> &mut StoreObjects {
    |                                       ^^^^^^^^^^^^ not found in this scope
    |
help: consider importing this struct
    |
1   + use wasmer_vm::StoreObjects;
    |

   Compiling swc_graph_analyzer v0.21.0 (/home/sampo/git/swc/crates/swc_graph_analyzer)
error[E0119]: conflicting implementations of trait `From<Engine>` for type `Engine`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/engine.rs:114:1
    |
114 | impl<T: Into<engine_imp::Engine>> From<T> for Engine {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: conflicting implementation in crate `core`:
            - impl<T> From<T> for T;

error[E0433]: failed to resolve: use of undeclared crate or module `engine_imp`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/engine.rs:30:30
   |
30 | pub struct Engine(pub(crate) engine_imp::Engine);
   |                              ^^^^^^^^^^ use of undeclared crate or module `engine_imp`

error[E0433]: failed to resolve: use of undeclared crate or module `engine_imp`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/engine.rs:114:14
    |
114 | impl<T: Into<engine_imp::Engine>> From<T> for Engine {
    |              ^^^^^^^^^^ use of undeclared crate or module `engine_imp`

error[E0433]: failed to resolve: use of undeclared crate or module `extern_ref_imp`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/extern_ref.rs:16:33
   |
16 | pub struct ExternRef(pub(crate) extern_ref_imp::ExternRef);
   |                                 ^^^^^^^^^^^^^^ use of undeclared crate or module `extern_ref_imp`
   |
help: there is a crate or module with a similar name
   |
16 | pub struct ExternRef(pub(crate) extern_ref::ExternRef);
   |                                 ~~~~~~~~~~

error[E0433]: failed to resolve: use of undeclared crate or module `function_impl`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/function.rs:87:32
   |
87 | pub struct Function(pub(crate) function_impl::Function);
   |                                ^^^^^^^^^^^^^ use of undeclared crate or module `function_impl`

error[E0433]: failed to resolve: use of undeclared crate or module `global_impl`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/global.rs:25:30
   |
25 | pub struct Global(pub(crate) global_impl::Global);
   |                              ^^^^^^^^^^^ use of undeclared crate or module `global_impl`

error[E0433]: failed to resolve: use of undeclared crate or module `memory_impl`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/memory.rs:33:30
   |
33 | pub struct Memory(pub(crate) memory_impl::Memory);
   |                              ^^^^^^^^^^^ use of undeclared crate or module `memory_impl`

error[E0433]: failed to resolve: use of undeclared crate or module `memory_impl`
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/memory.rs:193:47
    |
193 | pub(crate) struct MemoryBuffer<'a>(pub(crate) memory_impl::MemoryBuffer<'a>);
    |                                               ^^^^^^^^^^^ use of undeclared crate or module `memory_impl`

error[E0433]: failed to resolve: use of undeclared crate or module `memory_view_impl`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/memory_view.rs:21:38
   |
21 | pub struct MemoryView<'a>(pub(crate) memory_view_impl::MemoryView<'a>);
   |                                      ^^^^^^^^^^^^^^^^ use of undeclared crate or module `memory_view_impl`
   |
help: there is a crate or module with a similar name
   |
21 | pub struct MemoryView<'a>(pub(crate) memory_view::MemoryView<'a>);
   |                                      ~~~~~~~~~~~

error[E0433]: failed to resolve: use of undeclared crate or module `table_impl`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/externals/table.rs:26:29
   |
26 | pub struct Table(pub(crate) table_impl::Table);
   |                             ^^^^^^^^^^ use of undeclared crate or module `table_impl`

error[E0433]: failed to resolve: use of undeclared crate or module `instance_imp`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/instance.rs:26:24
   |
26 |     pub(crate) _inner: instance_imp::Instance,
   |                        ^^^^^^^^^^^^ use of undeclared crate or module `instance_imp`
   |
help: there is a crate or module with a similar name
   |
26 |     pub(crate) _inner: instance::Instance,
   |                        ~~~~~~~~

error[E0433]: failed to resolve: use of undeclared crate or module `module_imp`
  --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/module.rs:45:30
   |
45 | pub struct Module(pub(crate) module_imp::Module);
   |                              ^^^^^^^^^^ use of undeclared crate or module `module_imp`

error[E0425]: cannot find function `default_engine` in this scope
   --> /home/sampo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-4.0.0/src/engine.rs:110:14
    |
110 |         Self(default_engine())
    |              ^^^^^^^^^^^^^^ not found in this scope

Some errors have detailed explanations: E0119, E0412, E0425, E0432, E0433.
For more information about an error, try `rustc --explain E0119`.
error: could not compile `wasmer` (lib) due to 66 previous errors

I have tested that commands yarn build and yarn test pass, but I would like to be able to run all the tests as recommended in the doc.

Input code

No response

Config

No response

Playground link

No response

Expected behavior

The CONTRIBUTING.md provides simple easy to follow steps to get started after a clean checkout

Actual behavior

No response

Version

main

Additional context

No response

@Havunen Havunen added the C-bug label Aug 25, 2023
@Havunen Havunen changed the title Can't build the project following CONTRIBUTING.md Can't build the project and run the tests following CONTRIBUTING.md Aug 25, 2023
@kdy1 kdy1 self-assigned this Aug 25, 2023
@kdy1 kdy1 added this to the Planned milestone Aug 25, 2023
@kdy1 kdy1 removed their assignment Aug 26, 2023
@Havunen
Copy link
Author

Havunen commented Aug 26, 2023

@kdy1 how do you run all tests in this project? Is the command correct in the documentation? I'm trying to figure out if I'm doing something wrong or if its my environment

@kdy1
Copy link
Member

kdy1 commented Aug 26, 2023

Well, I don't run all tests at once by myself. I recommend taking a look at the CI script

@Havunen
Copy link
Author

Havunen commented Aug 27, 2023

This is slightly related: #7877

@zrosenbauer
Copy link
Contributor

@Havunen You can just run cargo test -p swc_ecma_transforms --all-features without issues (it's in the CONTRIBUTING).

@kdy1 I added a note to the CONTRIBUTING.md => #9338 which I think should close this out

@kdy1 kdy1 closed this as completed Jul 29, 2024
@kdy1 kdy1 modified the milestones: Planned, v1.7.4 Jul 31, 2024
@swc-bot
Copy link
Collaborator

swc-bot commented Aug 31, 2024

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Aug 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

4 participants