Rust 程序设计语言 简体中文版 1.85.0中,你会看到同使用 CMD 相同的三个文件。在 Windows 的 CMD 上,则输入如下命令: > dir /B %= the /B option says to only show the file names =% main.exe main.pdb main.rs 这展示了扩展名为 .rs 的源文件、可执行文件(在 Windows 下是 main.exe,其它平台是 main),以及当使用 cargo new,则这些 git 相关文件则不会生成;可以通过运行 cargo new --vcs=git 来覆盖这些行为。 注意:git 是一个常用的版本控制系统(version control system,VCS)。可以通过 --vcs 参数使 cargo new 切换到其它版本控制系统(VCS),或者不使用 VCS。运行 cargo new --help 查看可用的选项。 请自行选用文本编辑器打开 world!” 程序有什么不同!在 hello_cargo 目录 下,输入下面的命令来构建项目: $ cargo build Compiling hello_cargo v0.1.0 (file:///projects/hello_cargo) Finished dev [unoptimized + debuginfo] target(s) in 2.85 secs 这个命令会创建一个可执行文件0 码力 | 562 页 | 3.23 MB | 1 月前3
共 1 条
- 1













