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

40 lines
1.1 KiB
Org Mode
Raw Normal View History

2015-06-10 16:44:30 +00:00
#+TITLE: Rust contribution layer for Spacemacs
[[file:img/rust.png]]
* Table of Contents :TOC@4:
- [[#description][Description]]
- [[#install][Install]]
- [[#layer][Layer]]
- [[#cargo][Cargo]]
- [[#key-bindings][Key bindings]]
* Description
This layer aims to support [[http://www.rust-lang.org/][Rust]] development in Spacemacs.
For now only basic support for [[http://doc.crates.io/index.html][Cargo]] is provided.
* Install
** Layer
To use this layer, add it to your =~/.spacemacs=
#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers '(rust))
#+END_SRC
** Cargo
[[http://doc.crates.io/index.html][Cargo]] is a project management command line tool for Rust. Installation
instructions can be found on the main page of [[http://doc.crates.io/index.html][Cargo]].
2015-06-10 16:44:30 +00:00
* Key bindings
| Key Binding | Description |
|-------------+----------------------------------------|
| ~SPC m c c~ | compile project with Cargo |
| ~SPC m c x~ | compile and execute project with Cargo |
| ~SPC m t a~ | execute all tests with Cargo |