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

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

主站蜘蛛池模板: 泰州市| 鹤庆县| 布尔津县| 丁青县| 阿坝县| 蕲春县| 广州市| 栾川县| 五华县| 和林格尔县| 筠连县| 甘洛县| 霞浦县| 友谊县| 长顺县| 阳春市| 通榆县| 江城| 高台县| 沙洋县| 瑞丽市| 万宁市| 米林县| 壶关县| 贵阳市| 延边| 烟台市| 比如县| 赤水市| 城口县| 天津市| 建宁县| 广元市| 轮台县| 建昌县| 陵川县| 获嘉县| 望江县| 逊克县| 丰镇市| 嵊州市|