~/talk

The Dark Secrets Lurking Inside cargo doc

Talkat RustConf 2018 · on Friday, 2018-08-17· [rust, developer-experience]
slides:none on file

Shows how cargo doc actually invokes rustdoc and what rustdoc does: doc tests compiled (snippets get wrapped in main, linked to the crate, and get allow unused removed unless overridden), how doc(cfg) platform banners and cargo feature tricks make Linux and Windows docs converge, attributes like doc(include) and doc(hidden), CLI flags such as document-private-items and header HTML injection, where rustdoc lives in the compiler repo, the pretty‑printer and auto trait hacks, and demos that prove each behavior works.

AI-written summary · about

  1. 0:00Start
  2. 7:58The journey of a doctest
  3. 9:30Dactests and Lints
  4. 15:43Conditional compilation vs. your docs
  5. 23:30A peek behind the curtain
  6. 27:59Highlights of rustdoc internals
  7. 29:52The Rustdoc Team
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.