From 883c390e2e7677df357683f44d770b079cbf3d61 Mon Sep 17 00:00:00 2001 From: chrunchyjesus Date: Thu, 4 Jul 2019 21:13:21 +0200 Subject: [PATCH] add documentation regarding some commands --- modules/lang/rust/README.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/lang/rust/README.org b/modules/lang/rust/README.org index 43cd48e48..d175df1fe 100644 --- a/modules/lang/rust/README.org +++ b/modules/lang/rust/README.org @@ -40,6 +40,14 @@ To get started with Rust, you can either use =rustup= and install rust with: Package manager is not recommended to install Nightly version of Rust what is required for ~racer~ from [[https://github.com/racer-rust/racer#installation][version 2.1]] (more info in [[#Troubleshooting][Troubleshooting]]) +Some commands require additional crates to be installed to work, e.g. ~cargo +add~. +#+BEGIN_SRC sh +rustup component add rustfmt +rustup component add cargo-check +rustup component add cargo-edit +#+END_SRC + * Features This module also supports LSP, it requires installation of Rust Language Server [[https://github.com/rust-lang/rls][~RLS~]]. To enable this you need to enable ~lsp~ in ~:tools~ section in ~init.el~ file.