RustRover 2023.3 Help

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 Intention action icon (Alt+Enter):

    Attaching a Cargo project via editor notification
  • 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 (View | Tool Windows | Cargo) and click the App general add icon in to attach the project:

    Attaching Cargo projects from the Cargo tool window
Last modified: 11 September 2023