This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/!lang/rust/README.org
JP-Ellis 90f80c8ad1 Rust improvements:
- Use compile instead of shell for cargo. This allow Emacs to parse the
  output, including all the errors :)
- Added support for Racer (it works for me at least... hopefully for
  others too)

Signed-off-by: JP-Ellis <coujellis@gmail.com>
2015-07-01 01:34:07 -04:00

1.3 KiB

Rust contribution layer for Spacemacs

/TakeV/spacemacs/media/commit/90f80c8ad14b8ee3e4c9f6e8e5f95b5334315c3c/contrib/!lang/rust/img/rust.png

Table of Contents   TOC@4

Description

This layer aims to support Rust development in Spacemacs. It supports Cargo, and has some basic auto-completion support through Racer, though Racer needs some additional configurations as described on their page.

Install

Layer

To use this layer, add it to your ~/.spacemacs

(setq-default dotspacemacs-configuration-layers '(rust))

Cargo

Cargo is a project management command line tool for Rust. Installation instructions can be found on the main page of Cargo.

Key bindings

Key Binding Description
SPC m c c compile project with Cargo
SPC m c C execute the project with Cargo
SPC m c t run tests with Cargo
SPC m c d generate documentation with Cargo