- Learning Rust
- Paul Johnson Vesa Kaihlavirta
- 98字
- 2021-07-02 23:07:14
rustdoc versus Cargo
As with the other operations provided by Cargo, when documentation is created, it acts as a wrapper for rustdoc. The only difference is that with rustdoc you have to specify the directory that the source file sits in. Cargo acts dumb in this case, and creates the documentation for all source files.
In its simplest form, the rustdoc command is used as follows:
cargo doc rustdoc src/main.rs
Cargo does have the advantage of creating the doc structure within the root folder, whereas rustdoc creates the structure within the target (which is removed with cargo clean).
推薦閱讀
- VMware View Security Essentials
- 程序員修煉之道:程序設計入門30講
- Learning Elixir
- Android Native Development Kit Cookbook
- Rust Essentials(Second Edition)
- Python時間序列預測
- Getting Started with Laravel 4
- C語言程序設計
- RocketMQ實戰與原理解析
- C++從入門到精通(第6版)
- AMP:Building Accelerated Mobile Pages
- Hacking Android
- Java程序設計教程
- Java EE架構設計與開發實踐
- 系統分析師UML用例實戰