每天一小时Rust语言学习笔记,以官方学习指南为学习材料:
https://doc.rust-lang.org/book/title-page.html
1. rustc main.rs报错。
解决方法:https://ostechnix.com/how-to-fix-rust-error-linker-cc-not-found-on-linux/
sudo apt update
sudo apt upgrade
sudo apt install build-essential cmake
2. 在WSL终端输入以下命令查看WSL的文件。
cd
explorer.exe .
3. cargo doc --open命令无法正常运行,即无法打开浏览器。短期内使用下述手动方式即可打开index.html。