Rust language support for Atom-IDE, powered by the Rust Language Server (RLS).
rustc, support for
clippyis pending on https://github.com/rust-lang-nursery/rls/issues/149)
cmdfor more information)
rls.tomlfile at project root, see rls#configuration
toml # rls.toml features = ["serde"]
You can install from the command line with:
$ apm install ide-rust
Or you can install from Settings view by searching for
No other packages or manual setup is required as these will be handled with user prompts after install.
Cargo.toml is required in each atom project, however cargo workspaces can be used to support multiple crates in a single project. For example, a project with 'rust_foo' & 'rust_bar' directories/crates could have the following root
# Cargo.toml[workspace]members = ["rust_foo","rust_bar",]
Rls does not currently support workspaces by default, so this must be manually enabled:
# rls.tomlworkspace_mode = true
The Rls command can be specified manually, for example to run from local source code:
# config.cson..."ide-rust":rlsCommandOverride: "rustup run nightly cargo run --manifest-path=/rls-src/Cargo.toml --release"
When set you'll be able to see, and remove, this from the package settings. After restarting atom an info message will inform you the override is in place.
If stuff isn't working you can try enabling logging to debug:
This will spit out language server message logging into the atom console. Check if requests/responses are being sent or are incorrect. It will also include any Rls stderr messages (as warnings) which may point to Rls bugs.
MIT License. See the license for more details.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.