Hello I am new to Rust and currently learning it in my spare time. The problem is I have a folder where I list all my codes in an organized way created by "cargo new --bin example". And when I open the workspace in VSCode rust lang analyzer does not work for some projects. I searched a bit and I think I need to add cargo toml files to "rust-analyzer.linkedProjects" in extension settings. But when I do that, it works on some projects but doesn't work for others.
"rust-analyzer.linkedProjects": [
"C:/Users/user/Desktop/VSC/Rust/tutorials/rectangles/Cargo.toml",
"C:/Users/user/Desktop/VSC/Rust/tutorials/branches/Cargo.toml",
"C:/Users/user/Desktop/VSC/Rust/tutorials/guessing_game/Cargo.toml",
"C:/Users/user/Desktop/VSC/Rust/tutorials/hello_cargo/Cargo.toml",
"C:/Users/user/Desktop/VSC/Rust/tutorials/ownership/Cargo.toml",
]
+---Rust/tutorials(workspace)
| |
| |
| +---Guessin Game
| | | Cargo.toml
| | |
| | \---src
| | main.rs
| |
| \---Branches
| | Cargo.toml
| |
| \---src
| main.rs
|
(other 3 project with same template)
Why doesn't it work? Also I tried to add "C:/Users/user/Desktop/VSC/Rust/tutorials/./Cargo.toml" while commenting others out. It behaves strangely and continue to work with already working projects and vice versa. Can we do something like that?