https://linen.dev logo
Rust Analyzer doesn't work when using Shuttle
# help
w
When I add
#[shuttle_service::main]
rust analyzer no longer works which is very annoying, how can I fix this?
k
Hmm, that's strange, it works for me (in VSCode on ubuntu). Does it work for you if you try the axum hello world example (or any other cloned example)?
In my experience, rust-analyzer not applying in vscode is usually due to project structure. For example having several crates in the same root folder, but not declaring them as members of a workspace.