Rustlings_go

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

最近闲来无事,看了看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 出现上述显示,则安装完成..环境搭建完成.

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