介绍Rust是一个系统编程语言,运行快速、防止段错误并且是线程安全的。  安装sudo curl https://sh.rustup.rs -sSf | sh
原创 7月前
72阅读
Rust1.31.0stable发布了,这也标志着Rust2018版本的第一次迭代发布。Rust2018版本发布计划是Rust今年3月份提出来的,它是Rust1.0(Rust2015)以来的首个主要新版本,整合了Rust1.29-Rust1.31这几个版本,并且作为2018全年度稳定功能的结晶,同时提供与相关的精美文档、工具与库,包括IDE支持、新网站等。此版本主要亮点包括:1、改进NLL异常,现
原创 2021-05-26 21:14:22
176阅读
准备搞起一个《Rust那些事》,一起来学习呀~Rust引用1.引用Rust中,使用​​&T​​​表示类型T的引用类型,跟C++的引用比较来说不太一样,简单理解:等同于​​const T*​​,Rust版:pub fn get_rf() { let mut a : i32 = 1; let mut b : i32 = 2; let c : i32 = 3; let d : &
原创 7月前
118阅读
macro_rules! four { () => {1 + 3}; } fn main(){ println!("{}", 1+four!()); println!("{}", 2+four![]); println!("{}", 3+four!{}); } HIR阶段是将 你撸的代码转为AST。
原创 2021-07-30 11:33:53
138阅读
This is the source code of the traditional Hello World program. // This is a comment, and is ignored by the compiler. // You can test this code by cli
原创 2月前
2308阅读
ion rustup target add wasm32-unknown-unknown # note that this
原创 2月前
4150阅读
fn main() { let a = [10, 20, 30, 40, 50, 60]; for element in a.iter() { println!("The value is:{}", element) }}
原创 2021-03-13 09:25:15
1472阅读
fn main() { let a = [10, 20, 30, 40, 50, 60]; for element in a.iter() { println!("The value is:{}", element) }}
原创 2021-03-13 09:25:15
56阅读
Rust入门到劝退??我在学ownership!在说Rust中的ownership之前那就要说说计算机内存和
文章目录类 Unix 系统Windows 系统Windows 的 Linux 子系统(WSL)Rust 安装须知入门Windows 注意事项用 `rustup` 管理工具链配置 `PATH` 环境变量卸载 Rust其它安装方式原文关注Rust 可在 Windows、Linux、macOS、FreeBSD 和 NetBSD 上运行。
翻译 2022-04-25 10:13:39
202阅读
原文地址:https://github.com/baoyachi/rust-handle-error1. 前
12月21日,重庆的Rust小伙伴们在渝北区coffeeko进行了一次小型Rust meetup。Meetu
fn main() { // 切片 let s = String::from("Hello world"); let substr = &s[1..6]; let hello = &s[..5]; let world = &s[6..]; let whole = &s[..]; println!("subtr: {}", substr); println!("hello: {}", hello); println!("world: {}".
原创 2021-03-13 10:16:21
188阅读
使用强大的 rustup 工具来完成rust的版本升级。 稳定版和nightly版的升级 1.命令行输入: rustup self update 运行结果: 2. 升级: rustup self update 3.stable和nightly 版本切换 rustup default stable h ...
转载 2021-08-15 21:33:00
629阅读
2评论
下载rust https://www.rust-lang.org/zh-CN/learn/get-started 安装完成后,查看版本 在安装 Rustup 时,也会安装 Rust 构建工具和包管理器的最新稳定版,Cargo 新建项目hello-rust $ cargo new hello-rust
转载 2020-07-07 13:21:00
78阅读
2评论
rust开始 注重安全性和并发性 更安全更高效的代码 内存安全是不出现内存的访问的错误。 rust建立了严格的内存管理模型--所有权系统和类型系统。 泛型和trait系统使得rust具备了强大的抽象表
原创 2022-05-23 20:50:46
241阅读
fn greet(language: &str) -> &str { return match language { "english" => "Welcome", "czech" => "Vitejte", "danish" => "Velkomst", "dutch" => "Welkom",
原创 6月前
6406阅读
https://rocket.rs yew框架并不活跃,中文文档落后,下面使用rocket(上面链接)的框架。
原创 2月前
3973阅读
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Rust is a m
原创 2月前
3954阅读
  • 1
  • 2
  • 3
  • 4
  • 5