Translate: It's just a shortcut to run a trust file
在*.rs文件右键打开点击Run rust main function,就会在命令行运行如下命令,_dist是默认编译的路径
Translate: In *.rs file Right click to open and click 「Run rust main function」 and the following commands will be run on the command line. _dist is the default compiled path.
MAC:
rustc xx.rs out-dir ./_dist/xx && ./_dist/xx
Window:
rustc xx.rs out-dir ./_dist/xx ; .\_dist\xx.exe
使用之前先检查控制台能不能执行上面的命令!!!
Translate: Before using, check whether terminal can run the above command normally!!!