I also configure my check command to be clippy. But there is a problem: The check command always run cargo <whatever my check sub command is> and I would like it to instead run cross <...>.
When using cargo and cross interchanging like this, there is unfortunately a bug (or limitation) that the incremental build functionality stops working and the entire project is rebuilt every time.
A solution would be to always use cross. But I can't find such a setting in Rust Analyzer extension? Is there a way to get around this?
A really hacky way to work around this would be to create a shell script called cargo that just calls into cross, then make sure the script is on your $PATH (e.g. by overriding $PATH in rust-analyzer.check.extraEnv).