Search code examples
rustrustdoc

How do I view rustdoc for a library my project depends on?


I'd like to view the rust docs for a library that my program depends on. How can I pull these down? I found a question with the answer for the standard library but I'm looking specifically for crates.io dependencies.


Solution

  • Cargo does that automatically. For example, if I have hyper as a dependency, cargo doc produces docs for it starting at target/doc/hyper/index.html.