Working with TOML files
In Rust, the TOML format is used to write package manifests – Cargo.toml files. For more information about the TOML format, check out the Cargo book. Below you will find the main features for working with TOML files in RustRover.
Highlighting and code style
The highlighting and code style settings are applied to .toml files automatically. You can adjust the settings in .
When specifying dependencies from crates.io, you can autocomplete their names and versions:
You can navigate across Cargo features and jump to feature declarations from
The IDE runs a number of inspections to verify Cargo.toml. It checks whether the referenced crates exist and whether their versions are up-to-date. It also detects any cyclic feature dependencies.
Most problems can be fixed in one click: press Alt+Enter to view the options.
Enabling and disabling features
There's a smart UI for enabling/disabling specific features of your workspace right in the Cargo.toml file. It affects name resolution and code insight across the entire project.