码迷,mamicode.com
首页 > 其他好文 > 详细

Rustlings_开始

时间:2020-06-11 13:50:39      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:release   ati   time   first   过程   watch   repos   window   latest   

练习过程中的随手记, 主要为自己,..分享出来,若能帮助大家,意外乐趣

最近闲来无事,看了看Rust,做下rustlings玩一玩.

练习环境

  • 操作系统:Windows10 2004
  • Rust版本: 用rustup安装的当前20200611最新Rust nightly版本
  • 编辑器: VSCode
  • 其它:Git

安装Rustlings

git clone https://github.com/rust-lang/rustlings
cd rustlings
git checkout tags/3.0.0 # or whatever the latest version is (find out at https://github.com/rust-lang/rustlings/releases/latest)
cargo install --force --path .

结尾

$>rustlings

       welcome to...
                 _   _ _
  _ __ _   _ ___| |_| (_)_ __   __ _ ___
 | ‘__| | | / __| __| | | ‘_ \ / _` / __|
 | |  | |_| \__ \ |_| | | | | | (_| \__  |_|   \__,_|___/\__|_|_|_| |_|\__, |___/
                               |___/

Thanks for installing Rustlings!

Is this your first time?

Let‘s make sure you‘re up to speed:
- You have Rust installed, preferably via `rustup`
- You have `~/.cargo/bin` added to your PATH variable
- You have cloned this repository (https://github.com/rust-lang/rustlings)
- You have installed Rust language support for your editor
- You have locally installed the `rustlings` command by running an
  installation script or manually executing:

cargo install --force --path .

If you‘ve done all of this (or even most of it), congrats! You‘re ready
to start working with Rust.

To get started, run `rustlings watch` in order to get the first exercise.
Make sure to have your editor open!

若执行 rustlings 出现上述显示,则安装完成..环境搭建完成.

Rustlings_开始

标签:release   ati   time   first   过程   watch   repos   window   latest   

原文地址:https://www.cnblogs.com/nightwindnw/p/Rustlings_0.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!