
rust从入门到精通
rust从入门到精通,轻松入门,到精通
憨少
全栈攻城狮。7年开发经验。擅长python/vue/c++/c,热衷全栈开发。酷爱编程。
展开
-
rust入门篇-hello world
新建一个目录,mkdir project进入目录:cd projecttouch main.rsfn main() { println!("Hello, world!");}编译:$ rustc main.rs运行:$ ./mainHello, world!或者使用:cargo 命令来新建一个项目cargo new hello_cargo$ cd hello_cargo$ cargo build Com...原创 2020-12-30 01:26:23 · 474 阅读 · 0 评论 -
入门篇--rust安装(linux/windows)
参考链接:https://www.rust-lang.org/tools/installhttps://doc.rust-lang.org/book/ch01-01-installation.htmllinuxcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shwindows:根据系统选择安装程序如果windows中是带linux命令(如gitbash/cgywin),可以运行下面命令直接安装.原创 2020-12-30 00:44:17 · 337 阅读 · 0 评论