Rustlings_开始

Posted nightwindnw

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Rustlings_开始相关的知识,希望对你有一定的参考价值。

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

最近闲来无事,看了看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_开始的主要内容,如果未能解决你的问题,请参考以下文章

Rustlings_if

Rustlings_functions

Rustlings:送给Rust初学者的知识点练习题集推荐(MacOSX)

如何通过单击片段内的线性布局从片段类开始新活动?下面是我的代码,但这不起作用

这些 C++ 代码片段有啥作用?

无法从 onListItemClick 开始片段