Rust学习----Rust安装

如何安装Rust?

1.官网:https://www.rust-lang.org/zh-CN/

2.Linux or Max:

复制代码
curl https://sh.rustup.rs -sSf | sh

3.Windows按官网指导安装。

4.Windows Subsystem for Linux:

复制代码
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

更新于卸载Rust

1.更新Rust:

复制代码
rustup update

2.卸载Rust:

复制代码
rustup self uninstall

安装与验证

1.结果格式:rustc x.y.z(abcabcabc yyyy-mm-dd),会显示最新稳定版的:版本号、commit hash、commit日期

复制代码
rustuc --version

本地文档

1.安装Rust的时候,还会在本地安装文档,可离线浏览。

2.运行"rustup doc" 可在浏览器打开本地文档。

推荐开发工具

1.Visual Studio Code,里面有Rust插件

2.Clion(Intellij ldea 系列),里面也有Rust插件

相关推荐
GISer_Jing11 分钟前
Agent多代理架构:子代理核心机制解密
开发语言·人工智能·架构·aigc
jie1889457586640 分钟前
c语言------
c语言·开发语言
AI逐月2 小时前
解决 ComfyUI 插件安装后 Nanobind 报错问题:soxr 版本冲突原理解读
开发语言·python
清华都得不到的好学生2 小时前
数据结构->1.稀疏数组,2.数组队列(没有取模),3.环形队列
java·开发语言·数据结构
光影少年2 小时前
数组去重方法
开发语言·前端·javascript
我命由我123452 小时前
浏览器的 JS 模块化支持观察记录
开发语言·前端·javascript·css·html·ecmascript·html5
江苏世纪龙科技2 小时前
【世纪龙科技】当智能网联汽车教学遇上“数字孪生”
学习
软件开发技术深度爱好者2 小时前
用python + pillow实现GUI界面图片GUI处理工具
开发语言·python
weixin_425023002 小时前
PG JSONB 对应 Java 字段 + MyBatis-Plus 完整实战
java·开发语言·mybatis
leaves falling3 小时前
C++ string 类:从入门到模拟实现
开发语言·c++