Daenyth
Daenyth

Reputation: 37441

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.

Upvotes: 6

Views: 1428

Answers (1)

Chris Morgan
Chris Morgan

Reputation: 90752

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.

Upvotes: 7

Related Questions