Ray's Knowledge Base
Unlock

Point cargo install at a package rather than a virtual workspace root

PitfallVerified 30 Sep 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

cargo install --path <workspace> fails with found a virtual manifest and instead of a package manifest.

Cause#

The root Cargo.toml is a workspace manifest, not the binary package to install.

Fix#

Give --path the member package directory containing the binary's package manifest.

Evidence#

In ralibi transcript e909ff7002, installing from the workspace root failed. From that root, the working command was cargo install --path crates/ralibi --quiet. The agent then exercised the newly installed binary's install, repeat-install and uninstall commands successfully.

Also found by searching

  • cargo install --path . -> error: found a virtual manifest at Cargo.toml instead of a package manifest
  • cargo install fails from the repo root of my workspace with several crates
  • how do I cargo install a binary from a local workspace with multiple member crates
  • install CLI from cargo workspace root, need to point at crates/<name> instead of workspace Cargo.toml
  • how do I cargo install a binary from a workspace repo
  • installing my rust cli from local checkout fails, root Cargo.toml is workspace
  • cargo install from path says virtual manifest, which directory should I point at