Reputation: 806
If I don't want to use cargo for some reasons, I have the error: could not find 'Cargo.toml'
. Is there any way to disable all Cargo.toml
-related functionality?
I tried this:
{
"cargo": {
"noSysroot": true,
"sysroot": "",
"autoreload": false,
"buildScripts": { "enable": false }
}
}
But this didn't help.
Upvotes: 0
Views: 493
Reputation: 730
To use rust-analyzer with single files, please check out https://github.com/rust-lang/rust-analyzer/pull/8955. For larger projects that don't use Cargo, you won't be able to use rust-analyzer at the moment as per this comment.
Upvotes: 1