Cargo Error Messages
Rust build system and package manager.All Cargo pages
- Cargo: error: current package believes it's in a workspace when it's notcargo build fails with current package believes it's in a workspace when a parent Cargo.toml has [workspace] without it. Add it to members or exclude it.
- Cargo: error: no matching package named `serde-jsonn` foundcargo build fails with no matching package named found when the crate in Cargo.toml is not in the registry: a typo, an unpublished crate or the wrong registry.
- error: a bin target must be available for `cargo run`cargo run fails with a bin target must be available when the package is a library with no src/main.rs. Add a binary, run an example, or use cargo test instead.
- error: could not find `Cargo.toml` in `...` or any parent directorycargo reports could not find Cargo.toml when run outside a Rust package. cd into the project, pass --manifest-path, or create a package with cargo new.