官术网_书友最值得收藏!

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).

主站蜘蛛池模板: 鱼台县| 高邑县| 星座| 洞口县| 汶上县| 芦山县| 溧阳市| 浪卡子县| 阳东县| 大石桥市| 潮州市| 西城区| 奉新县| 神农架林区| 信丰县| 千阳县| 德昌县| 乌拉特前旗| 营山县| 左贡县| 江达县| 昆明市| 翁源县| 施甸县| 八宿县| 通江县| 出国| 鹿泉市| 合肥市| 固安县| 米泉市| 资源县| 济阳县| 乌鲁木齐县| 拉孜县| 政和县| 固安县| 鄱阳县| 桃园县| 安仁县| 乌拉特中旗|