rust
主要是跟大家分享一下记录,以及一些踩坑
why
比python快,安全,高性能。比价c++ 安全,一样高的性能,还好写,马斯克说是ai时代的编程语言
学他可以跟很多行业大佬交流。
安装rust
文档
https://doc.rust-lang.org/book/ch01-01-installation.html
换rust源(cargo)
飞书提供的
https://rsproxy.cn/
或者其他一堆
Hello world
编译 rustc main.rs
运行./main
安装cargo包管理
换源
清华
https://mirrors.tuna.tsinghua.edu.cn/help/crates.io-index.git/
hello world
https://doc.rust-lang.org/book/ch01-03-hello-cargo.html