rustup版本控制
路径
%USERPROFILE%\.cargo\bin
源码
git clone
racer工具
git clone
cd racer
cargo build --release
自动安装
cargo install --git ''
安装rustfmt
cargo install rustfmt
crtl+`
import urllib.request,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( '' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
安装Rust插件(rust语法高亮)、RustAutoComplete(rust代码提示和自动补全插件)
Preferences->Package Settings->RustAutoComplete->Settings-User 来打开 RustAutoComplete 的配置文件,在文件中配置以下信息并保存。+
{
"racer": "E:/soft/racer-master/target/release/racer.exe",
"search_paths": [ "E:/soft/rustc-1.7.0/src" ]
}
升级rust版本
rustup update
阅读(810) | 评论(0) | 转发(0) |