- 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).
推薦閱讀
- Web Application Development with R Using Shiny(Second Edition)
- Python爬蟲開發與項目實戰
- Rust Essentials(Second Edition)
- Getting Started with React Native
- Python Social Media Analytics
- Deep Learning for Natural Language Processing
- Parallel Programming with Python
- 用Go語言自制編譯器
- Leaflet.js Essentials
- OpenCL異構并行計算:原理、機制與優化實踐
- Magento 2 -Build World-Class online stores
- Java面向對象程序設計(第3版)
- 一個APP的誕生:從零開始設計你的手機應用
- Java并發編程深度解析與實戰
- Building Business Websites with Squarespace 7