doomemacs/modules/lang/rust
Henrik Lissner cb923eadcc
Add basic LSP support
Still needs to be documented, but includes support for the following
languages:

+ C/C++/ObjC
+ Go
+ Java
+ Javascript
+ OCaml
+ PHP
+ Python
+ Ruby
+ Scala
+ Swift
+ HTML/CSS

Relevant to #460, #716, #1186
2019-02-21 19:13:35 -05:00
..
autoload.el lang/rust: fix +rust-cargo-project-p not detecting nearer Cargo.toml files 2018-03-14 18:44:55 -04:00
config.el Add basic LSP support 2019-02-21 19:13:35 -05:00
doctor.el Don't byte-compile doctor.el files 2018-03-20 21:19:37 -04:00
packages.el lang/rust: remove company-racer 2018-10-18 13:11:28 -04:00
README.org Add lang/rust/README.org 2017-11-02 20:00:43 +01:00

: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.