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

  • Mastering Rust
  • Rahul Sharma Vesa Kaihlavirta
  • 153字
  • 2021-07-02 13:35:26

Documentation

Documentation is a very crucial aspect of any open source software aiming for wide adoption by the programmer community. While your code, which should be readable, tells you how it works, the documentation should tell you about the why and how of the design decisions and example usage of the public APIs of your software. Well documented code with a comprehensive README.md page boosts the discoverability of your project many times over.

The Rust community takes documentation very seriously and has tools at various levels to make it easy to write documentation for code. It also makes it presentable and consumable for its users. For writing documentation, it supports the markdown dialect. Markdown is a very popular markup language and is the standard these days for writing docs. Rust has a dedicated tool called rustdoc that parses markdown doc comments, converts them to HTML, and generates beautiful and searchable documentation pages.

主站蜘蛛池模板: 灵台县| 建湖县| 鸡东县| 宝坻区| 区。| 黑山县| 广宗县| 周至县| 雷波县| 大石桥市| 溧水县| 岳普湖县| 重庆市| 公安县| 怀远县| 个旧市| 隆安县| 垣曲县| 四川省| 馆陶县| 万年县| 庄浪县| 屯留县| 图们市| 兴安盟| 广宁县| 三都| 玉山县| 柳州市| 梅州市| 巴东县| 富蕴县| 玛沁县| 北京市| 盈江县| 民乐县| 旬邑县| 大邑县| 武胜县| 沁水县| 尼勒克县|