doomemacs/modules/lang/rust
2019-03-02 01:34:19 -05:00
..
autoload.el
config.el Replace +lsp|init with lsp! autodef 2019-03-02 01:34:19 -05:00
doctor.el
packages.el lang/rust: disable racer when +lsp 2019-02-23 14:05:12 +08:00
README.org

:lang rust

This module is a work in progress.

This module adds Rust support to Emacs.

  • Code completion (racer)
  • Syntax checking (flycheck)
  • Eldoc support (go-eldoc)
  • Snippets

Table of Contents   TOC

Install

Rust

To get started with Rust, you can either use rustup and install rust with:

curl https://sh.rustup.rs -sSf | sh

Or through your package manager (which is my preference):

MacOS

brew install rust
cargo install racer

Arch Linux

sudo pacman --needed --noconfirm -S rust rust-racer

Dependencies

This module requires racer for code completion, which also requires access to Rust's source code.

cargo install racer
git clone https://github.com/rust-lang/rust $RUST_SRC_PATH

Either set $RUST_SRC_PATH in your shell (so that it's available in Emacs), or adjust +rust-src-dir to point at the correct directory.