opendut
opendut copied to clipboard
Re-compilation issues due to RustRover's usage of `RUSTC_BOOTSTRAP=1`
RustRover sets the environment variable RUSTC_BOOTSTRAP=1 during test execution, but this variable is not set for regular compilation. In combination with the latest versions of anyhow and thiserror, cargo re-compiles all dependencies which depend on one of these creates on every test-run.
This issue depends on: https://youtrack.jetbrains.com/issue/RUST-13133
A workaround is to stick to older versions of anyhow and thiserror by downgrading the following dependencies:
- anyhow: 1.0.79 -> 1.0.75
- async-trait: 0.1.77 -> 0.1.74
- serde: 1.0.195 -> 1.0.192
- serde_json: 1.0.111 -> 1.0.108
- thiserror: 1.0.56 -> 1.0.50
But as soon as one of our dependencies pulls in a newer version of one of these crates the re-compiles issue returns.
A better alternative is to disable RustRover's Test Tool Window.
- Go to Settings | Advanced settings
- Scroll down to the Rust section and uncheck Show test results in the Test output window option.
- Press OK button.