I'm learning to use rust,i am using vscode。
I have two cargo projects in my workspace,Why rust-analyzer only has an error message in the first project, but not in the second。


Is there any setting required?
You need to create workspace:
Cargo.toml in your root project[workspace]
members = [
"./<your-cargo-project1>",
"./<your-cargo-project2>",
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With