Add new items to Cargo projects

Last modified: 31 October 2024

RustRover makes it easy to add new items to your project, be it Cargo crates, directories, Rust files, or files with other extensions.

Creating a new item in a Cargo project

If you open a Rust file that is not attached to any module, RustRover will display a banner suggesting to attach it to the current module's target.

Quick fix to attach the open Rust file to the current module