Rust Installation

Install

  1. nightly
1
rustup install nightly
  1. Racer 是 Rust 代码补全库,被很多编辑器所需要(除了 Interllij Rust)
1
2
3
4
5
6
7
# cargo install racer
cargo +nightly install racer
# 代码补全需要源代码,下载源代码
rustup component add rust-src

# Mac Linux
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
  1. Plugin
  • rustfmt
  1. CodeLLDB
1
brew install llvm --with-python --with-lldb

Refer

https://zhuanlan.zhihu.com/p/26944087