安裝教學
1.到官網安裝rust
https://rust-lang.org/tools/install/
照著一些視頻教學常常遇到錯誤error: linking with link.exe failed: exit code: 1
解法為:
rustup toolchain install stable-x86_64-pc-windows-gnu
rustup default stable-x86_64-pc-windows-gnu
cargo build
Compiling hello v0.1.0 (C:\Users\leke\dev\rust\hello)
Finished dev [unoptimized + debuginfo] target(s) in 1.66s
製作hello world
開一個新資料夾進去 打開cmd輸入:
cargo new hello_cargo

然後
cd hello_cargo

然後
cargo run
你會看到

參考資源:
https://stackoverflow.com/questions/55603111/unable-to-compile-rust-hello-world-on-windows-linker-link-exe-not-found
https://youtu.be/mYvpEK40iX0?list=PLGzwzBsMvr-lxc9Ow0C7YeTlwAkxTO0K1