RustRover 2025.2 Help

Project templates

RustRover streamlines new project creation with a selection of Cargo project templates. These templates pre-define your project's initial structure, so you don't have to set everything up from scratch.

Predefined project template

Apart from the predefined options, you can easily create a custom template based on any Git repository. In fact, this is how WebAssembly Lib and Procedural Macro are obtained. For more information, refer to Cargo-generate templates.

Binary application template

When you need to create an executable program (a binary target), select the Binary template. RustRover will then generate a simple project consisting of Cargo.toml and a src folder containing main.rs:

New binary application project layout

The IDE automatically creates a Run Cargo configuration that runs the following Cargo command:

run --package project_name --bin project_name

Library template

When you need to create a library that can be reused by other Rust projects (a library target), select the Library template. RustRover will generate a project consisting of Cargo.toml and a src folder containing lib.rs:

New library project structure

For library projects, the IDE creates a Test Cargo configuration that runs the following Cargo command:

test --package project_name --lib tests

WASM template for new projects

RustRover integrates with cargo-generate to help you use Git repositories as project templates.

The WebAssembly Lib template is based on wasm-pack-template.

WebAssembly project template

When you create a project using this template, the IDE generates a sample structure and automatically adds a Build configuration of the wasm-pack type.

New WASM project

Cargo-generate templates

RustRover integrates with cargo-generate which allows you to reuse and share Git repositories as project templates. If you don’t have cargo-generate installed, you can do it from the New Project dialog.

Create a custom template

To create a template based on a Git repo, do the following:

  1. On the Welcome screen, click the icon.

  2. In the Add Custom Template dialog, specify the URL of the Git repo and the template name.

  3. Click Add

Custom Git repo as a cargo-generate template
11 September 2025