1.下载RUST源码
https://static.rust-lang.org/dist/rustc-1.18.0-src.tar.gz ,解压到C盘 C:\rustc-1.18.0-src
2.下载 https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe
运行一下,跟据网址下载 VC 2015 编译器,默认安装OK
3.下载安装 https://static.rust-lang.org/dist/rust-1.18.0-x86_64-pc-windows-msvc.msi 安装目录路径指为
C:\Program Files\Rust1.17
4.进入CMD---> CD racer-master------>执行命令:
C:\racer-master>cargo build --release
把C:\racer-master\target\release\racer.exe 拷到C:\Program Files\Rust1.17\bin下
5.相同目录下同样执行命令:
C:\racer-master>cargo install rustfmt
C:\racer-master>cargo install rustsym
把
C:\Users\zkf\.cargo\bin\cargo-fmt.exe
C:\Users\zkf\.cargo\bin\rustfmt.exe
C:\Users\zkf\.cargo\bin\rustsym.exe
拷到C:\Program Files\Rust1.17\bin 下面
6.打开Visual Studio Code 加载RUST 插件,搜最高分的那个插件
Code Runner
7.打开Visual Studio Code 在首选项中设置
8.右健RUN CODE