rust练习:rustlings食用方法


rustlings github地址:点击跳转

Windows 安装方法:

# find out the latest version at https://github.com/rust-lang/rustlings/releases/latest (on edit 5.2.1)
git clone -b 5.2.1 --depth 1 https://github.com/rust-lang/rustlings
cd rustlings
cargo install --force --path .

找到rustlings目录,vscode打开,在终端输入rustlings watch,进入界面:

image-20221208190313302

根据终端的编译错误修改代码,使得编译通过。通过后把代码第五行注释的I AM NOT DONE删掉,就自动进入下一题。

需要根据终端的提示在VSCODE中找到代码文件,进行修改。

整个做完大概要一两天时间,感觉还挺有趣的,像闯关一样。