rust 入门
主要参考资料:Rust 程序设计语言
github地址:https://github.com/yunwei37/os-summer-of-code-daily
在linux上面安装Rust
环境:
uname -a
Linux ubuntu 5.4.0-39-generic #43-Ubuntu SMP Fri Jun 19 10:28:31 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
运行:
curl https://sh.rustup.rs -sSf | sh
Welcome to Rust!
Rust is installed now. Great!
重启;
rustc --version
rustc 1.44.1 (c7087fe00 2020-06-17)
很新鲜的样子
查看文档:rustup doc
装了个插件:Rust support for Visual Studio Code
然后跳了个框,说有些组件还没装…
Hello, World!
$ mkdir hello_world
$ cd