输入命令 cargo doc --open,系统自动生成参考文档。
>>cargo doc --open
warning: output filename collision.
The lib target `rand` in package `rand v0.4.6` has the same output filename as the lib target `rand` in package `rand v0.3.23`.
Colliding filename is: E:\DiskZ\rust\0003-game\target\doc\rand\index.html
The targets should have unique names.
This is a known bug where multiple crates with the same name use
the same path; see <https://github.com/rust-lang/cargo/issues/6313>.
Checking winapi v0.3.9
Documenting winapi v0.3.9
Checking libc v0.2.81
Documenting libc v0.2.81
Checking rand v0.4.6
Checking rand v0.3.23
Documenting rand v0.4.6
Documenting rand v0.3.23
Documenting game v0.1.0 (E:\DiskZ\rust\0003-game)
Finished dev [unoptimized + debuginfo] target(s) in 8.27s
Opening E:\DiskZ\rust\0003-game\target\doc\game\index.html
内容很全,通过浏览器可以查询自己感兴趣的内容: