RustRover 2025.2 Help

Set environment variables

Environment variables help configure Rust projects. In RustRover, you can easily define project-level environment variables.

  1. Press Ctrl+Alt+S to open settings and then select Rust.

  2. Locate the Environment variables field and click the Browse button.

  3. In the Environment Variables dialog, click the Add button and specify the name and value.

    For example:

    CARGO_TARGET_DIR=target/debug-custom

    Click OK.

    Add an environment variable
11 September 2025