2.1 什么是 Rust?
01-什么是 Rust? — Comprehensive Rust
1分钟内可阅读完
译文 · 基于 Comprehensive Rust
原文链接: https://google.github.io/comprehensive-rust/hello-world/what-is-rust.html
2.1 什么是 Rust?
Rust 是一门较新的编程语言,于 2015 年发布 1.0:
- Rust 是静态编译语言,定位与 C++ 类似
rustc以 LLVM 作为后端。
- Rust 支持众多
平台与架构:
- x86、ARM、WebAssembly 等
- Linux、Mac、Windows 等
- Rust 用于广泛的设备:
- 固件与引导加载程序,
- 智能显示设备,
- 手机,
- 桌面端,
- 服务器。
Rust 与 C++ 处于同一领域:
- 高度灵活。
- 高度可控。
- 可缩放到微控制器等资源极度受限的设备。
- 没有运行时或垃圾回收。
- 在不牺牲性能的前提下,聚焦可靠性与安全性。