- 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).
推薦閱讀
- Go Web編程
- 編程的修煉
- Computer Vision for the Web
- Android Studio Essentials
- The Data Visualization Workshop
- NetBeans IDE 8 Cookbook
- CoffeeScript Application Development Cookbook
- Cocos2d-x Game Development Blueprints
- Python 3 數據分析與機器學習實戰
- OpenCV Android開發實戰
- SQL Server 2008實用教程(第3版)
- Isomorphic Go
- Java程序設計
- 微信公眾平臺開發最佳實踐
- PHP典型模塊與項目實戰大全