Listen "e001: Document All the Things"
Episode Synopsis
Document all the things!
Subject: Documentation in general, and rustdoc and cargo doc in particular.
Follow/Support
New Rustacean:
Twitter: @newrustacean
App.net: @newrustacean
Patreon
Email: [email protected]
Chris Krycho
Twitter: @chriskrycho
App.net: @chriskrycho
Notes
This is a mostly-empty module, and it is intended as such. Why? Well, because almost all the sample code exists in these comments, which serve as the show notes. If you listen to the episode or take a look at the source files, you’ll see how it works!
The components below are included solely so you can see how the docstrings work with each kind of thing. Make sure to click on the names of the items: there is more documentation there. Again, take a look at the source to see how it looks in the context of a file module.
Note that this module-level docstring uses rather than `///`-style comments. This is because this docstring is documenting the item which contains it, rather than the following item. Per [Rust RFC 505][1], the preferred approach is always to use the "following" form (`///`) rather than the "containing" form (), except for module-level docs like these. (I will be following RFC 505 throughout.)
Links
Rust and MSVC tracking issue
Other documentation tools:
Predecessors:
Python’s Sphinx tool
Doxygen
JSDoc
JavaDoc
Other new languages with Markdown tooling
Julia has a built-in documentation system
Elixir has ex_doc
Rust 1.3 release announcement
Rust’s package hosting: crates.io
Crater for testing for backwards compatibility
Semantic versioning
“Stability as a Deliverable”: Rust official blog post on version stability, backwards compatibility, and release channels.
The Rust book chapter on rustdoc
Subject: Documentation in general, and rustdoc and cargo doc in particular.
Follow/Support
New Rustacean:
Twitter: @newrustacean
App.net: @newrustacean
Patreon
Email: [email protected]
Chris Krycho
Twitter: @chriskrycho
App.net: @chriskrycho
Notes
This is a mostly-empty module, and it is intended as such. Why? Well, because almost all the sample code exists in these comments, which serve as the show notes. If you listen to the episode or take a look at the source files, you’ll see how it works!
The components below are included solely so you can see how the docstrings work with each kind of thing. Make sure to click on the names of the items: there is more documentation there. Again, take a look at the source to see how it looks in the context of a file module.
Note that this module-level docstring uses rather than `///`-style comments. This is because this docstring is documenting the item which contains it, rather than the following item. Per [Rust RFC 505][1], the preferred approach is always to use the "following" form (`///`) rather than the "containing" form (), except for module-level docs like these. (I will be following RFC 505 throughout.)
Links
Rust and MSVC tracking issue
Other documentation tools:
Predecessors:
Python’s Sphinx tool
Doxygen
JSDoc
JavaDoc
Other new languages with Markdown tooling
Julia has a built-in documentation system
Elixir has ex_doc
Rust 1.3 release announcement
Rust’s package hosting: crates.io
Crater for testing for backwards compatibility
Semantic versioning
“Stability as a Deliverable”: Rust official blog post on version stability, backwards compatibility, and release channels.
The Rust book chapter on rustdoc
More episodes of the podcast New Rustacean
Meta 3: Happy Coding
27/05/2019
News: Rust 1.35
23/05/2019
CYSK: bindgen and cbindgen
17/05/2019
e031: FFI Deep Dive
13/05/2019
e030: Can You See Me Now?
26/04/2019
News: Rust 1.33 and 1.34
20/04/2019
e029: I’m Out to C
03/04/2019
Bonus 14: How the Sausage Gets Made
23/03/2019
Bonus 13: I Still Make Silly Mistakes
28/02/2019
e028: Meet My Associates
21/02/2019
ZARZA We are Zarza, the prestigious firm behind major projects in information technology.