Cursor rust-analyzer not working

Hey!
I am working with Rust in Cursor. For me, the rust-analyzer package does not work. I cannot jump to definitions via cmd + left click, do not get types and documentation, etc.
This is quite annoying. Is there any workaround?

nvm, found the issue. It was actually with my project structure and rust-analyzer itself. So, it wasn’t related to Cursor.

1 Like

I’m glad your problem is solved.

I had a similar issue. It got fixed after I added the Cargo.toml path in settings.json file.

.vscode/settings.json

 "rust-analyzer.linkedProjects": [
        "/PATH_TO_CARGO_TOML_FILE"
    ]
1 Like