Rust 在Windows10 下安装

安装RLS参考: rustup self update

rustup update nightly

rustup component add rls --toolchain nightly

rustup component add rust-analysis --toolchain nightly

rustup component add rust-src --toolchain nightly

rustup component add rust-src --toolchain stable

添加环境变量

set RUST_SRC_PATH=%USERPROFILE%.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\src\rust\src

使用Cargo包管理器安装

cargo install racer

cargo install rustfmt

cargo install rustsym

WASM编译: 安装

rustup target add wasm32-unknown-emscripten stable

编译

cargo build --target=wasm32-unknown-emscripten

或 完整命令

rustup run stable-x86_64-pc-windows-gnu cargo build --target=wasm32-unknown-emscripten

Debug环境配置参考:

a. 安装gdb64 追加如下python脚本到D:\Program Files\gdb-7.9.1-tdm64-2\gdb64\bin\gdbinit文件内。 python

print "---- Loading Rust pretty-printers ----"

from os.path import expanduser

sys.path.insert(0, expanduser("~") + "/.rustup/toolchains/stable-x86_64-pc-windows-gnu/lib/rustlib/etc")

import gdb_rust_pretty_printing

gdb_rust_pretty_printing.register_printers(gdb)

转载于:https://my.oschina.net/greister/blog/1575366

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值