cargo-wasi icon indicating copy to clipboard operation
cargo-wasi copied to clipboard

cargo --manifest-path doesn't work properly

Open obourgain opened this issue 3 years ago • 0 comments

When I run

cargo new missing_manifest_path
cargo wasi test --manifest-path missing_manifest_path/Cargo.toml

I get the following error

error: could not find `Cargo.toml` in `/private/tmp` or any parent directory
error: failed to execute "cargo" "metadata" "--no-deps" "--format-version=1"

I guess there is some kind of recognition of the flag because if I indicate just the folder and not the Cargo.toml file itself, I get

cargo wasi test --manifest-path missing_manifest_path/    // missing Cargo.toml here
error: the manifest-path must be a path to a Cargo.toml file

obourgain avatar Jul 25 '22 16:07 obourgain