wasix-org/cargo-wasix

`cargo wasix run` fails

Opened this issue · 6 comments

Cargo wasix run fails with this error:

error: no such command: `+wasix`

        Cargo does not handle `+toolchain` directives.
        Did you mean to invoke `cargo` through `rustup` instead?

OS: Windows
Rust version: 1.72.0

@Luxvao How do I need to go about reproducing this error?

@dierbei Make a new rust projects and then just run cargo wasix run.

I've run into this before.

It looks like the first rustc in your path is not the rustup provided wrapper, but a plain rustc.

How did you install rustup?
Can you share your PATH?

I installed rustup through a installer from rustup.rs. When I run which rustup I get C:\Users\Bor\.cargo\rustc (I'm on windows)

@Luxvao Is it possible that this is due to the OS, I can run it fine on ubuntu 22.04.