Rustic
This package is a fork of rust-mode
Differences with rust-mode:
- compilation popup
- multiline error parsing
- translation of ANSI control sequences through xterm-color
- async org babel
- custom compilation process
- rustfmt errors in a rust compilation mode
- automatic RLS configuration with eglot or lsp-mode
- cask for testing
- requires emacs 26
- etc.
Some basic commands:
- rustic-compile
- rustic-recompile
- rustic-format-buffer
- rustic-racer-describe
Popup
You can execute commands with rustic-popup. The list of commands can be customized
with rustic-popup-commands.
Cargo outdated
Use rustic-cargo-outdated to get a list of dependencies that are out of date. The results
are displayed in tabulated-list-mode.
Org-babel
#+BEGIN_SRC rustic :crates '(("regex" . "0.2") ("darling" . "0.1"))
fn main() {
println!("{}", "foo");
}
#+END_SRC
Rust Language Server
The default package is lsp-mode. But you can also use eglot or no RLS client with nil.
(setq rustic-rls-pkg 'eglot)