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

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

主站蜘蛛池模板: 云和县| 墨玉县| 台南县| 民乐县| 德保县| 黄浦区| 舒兰市| 文山县| 濉溪县| 邵阳市| 宜章县| 沙河市| 宣城市| 永德县| 房产| 铅山县| 湘潭市| 扶沟县| 古田县| 鄄城县| 海宁市| 泰兴市| 固阳县| 家居| 榕江县| 读书| 宜昌市| 景德镇市| 盐山县| 都匀市| 兰西县| 贵州省| 如皋市| 栾城县| 咸丰县| 昭觉县| 乌拉特中旗| 武威市| 阿拉善左旗| 宜良县| 两当县|