安裝
地址:
https://www.rust-lang.org/zh-CN/tools/install
檢驗(yàn)安裝成功命令:
rustc --version
新建一個(gè)文件hellowrold.rs
fn main() {
println!("hello world");
}
執(zhí)行命令
rustc helloworld.rs
此時(shí)會(huì)生產(chǎn)兩個(gè)文件.exe和.pdb锭碳,像極了自己在寫(xiě).net的時(shí)候衷恭,build之后,也有.pdb和.exe颊埃。可能因?yàn)樵趙indows下開(kāi)發(fā)的緣故吧蝶俱,一個(gè)可執(zhí)行文件班利,和一個(gè)調(diào)試文件,如此相似榨呆。
執(zhí)行程序,打印出hello wolrd
helloworld.exe