RustRover
 
Get RustRover

Support for conditional compilation

Last modified: 26 May 2024

RustRover includes smart support for conditional compilation. It excludes disabled code blocks from code analysis and name resolution, making it unreachable for inspections, refactorings, and other IDE features that are normally turned on. The conditionally disabled code itself appears greyed-out.

The IDE provides a dedicated UI for enabling/disabling Cargo workspace features. It also allows you to specify the target architecture, automatically filtering the appropriate workspace features.