You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling which v6.0.1
error[E0046]: not all trait items implemented, missing: `is_valid`
--> /home/cncsmonster/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/which-6.0.1/src/checker.rs:13:1
|
13 | impl Checker for ExecutableChecker {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `is_valid`in implementation
|
::: /home/cncsmonster/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/which-6.0.1/src/finder.rs:28:5
|
28 | fn is_valid(&self, path: &Path) -> bool;| ---------------------------------------- `is_valid` from trait
For more information about this error, try `rustc --explain E0046`.
error: could not compile `which` (lib) due to 1 previous error
Error: Compiling your crate to WebAssembly failed
Caused by: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 101
full command: cd"."&&"cargo""build""--lib""--release""--target""wasm32-unknown-unknown""--no-default-features"
ENV
$ uname -a
Linux DESKTOP-NGIRL25 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammyu
The text was updated successfully, but these errors were encountered:
I must also make it clear that it's not possible for this project to support wasm without wasi. You need a filesystem in order to search a filesystem, and wasm without wasi doesn't have a filesystem.
To rehappen
i first execute following order
cargo new try-which --lib cd try-which
write src/lib.rs as below
write Cargo.toml as below
then i try build it to wasm as below:
wasm-pack build . --target nodejs -- --no-default-features
but instead of sussess, i get error as below:
ENV
The text was updated successfully, but these errors were encountered: