Using the latest Rust Analyzer, I have a workspace that contains more than 1 project, but it keeps printing errors as shown in the attached image.
test1: Cargo.toml
[package]
name = "test1"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
web1 Cargo.toml
[package]
name = "main"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
actix-web = "4"
lanch.json in both :
{
// The following are sample configurations for common case scenarios of debugging
// Rust in Visual Studio Code
//
// For syntax, visit: https://go.microsoft.com/fwlink/?linkid=830387
//
"version": "0.2.0",
"configurations": [
{
"name": "Launch an application",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceRoot}/target/debug/${fileBasenameNoExtension}.exe",
"args": [ "arg1", "arg2" ],
"cwd": "${workspaceRoot}",
},
]
}