-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust analyzer config #202
Comments
I have one, I'll share it when I get back to the keyboard.On 16 Apr 2021 5:53 pm, Adam Bratschi-Kaye ***@***.***> wrote:
Has anyone gotten rust-analyzer configuration that works for rust-for-linux? Could be useful to add to the documentation.
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.
|
Rust-for-linux doesn't use cargo and as such rust-analyzer can't automatically detect the crate roots and dependencies. Instead it is necessary to manually specify it in a |
Thanks! |
Here's my {
"sysroot_src": "/usr/local/google/home/wedsonaf/.rustup/toolchains/nightly-2021-02-20-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/",
"crates": [
{
"root_module": "rust/module.rs",
"edition": "2018",
"deps": [ ]
},
{
"root_module": "rust/kernel/lib.rs",
"edition": "2018",
"deps": [
{
"crate": 0,
"name": "module"
}
]
},
{
"root_module": "drivers/android/rust_binder.rs",
"edition": "2018",
"deps": [
{
"crate": 0,
"name": "module"
},
{
"crate": 1,
"name": "kernel"
}
]
}
]
} |
Closed via #227. |
Has anyone gotten rust-analyzer configuration that works for rust-for-linux? Could be useful to add to the documentation.
The text was updated successfully, but these errors were encountered: