Attaching Cargo projects
When working with a complicated project structure, you can add a particular directory containing a Rust package/workspace as a Cargo project and configure the project model for it separately.
Attach a Cargo project
Do one of the following:
Open the project's Cargo.toml file and click Attach in the editor notification or use the bulb icon menu
(Alt+Enter):
Alternatively, right-click the Cargo.toml file in the project tree and select Attach Cargo Project from the context menu.
If there are some Cargo projects loaded already, open the Cargo tool window ( ) and click the
icon in to attach the project:
Last modified: 11 September 2023