-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open documentation for a given crate #3805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Doesn't |
|
Ah, this sounds like a bug, then, and probably what this ticket should focus on.
This is covered by #739 |
I assume it's intentional, since build and dev dependencies are not part of crate's interface. I would not like build/dev dependencies included in |
Yes it's intentional that build-dependencies don't show up in Cargo by default, but I think this works? cargo doc -p gcc --open Does that work for your use case? |
Thanks! That works. I did not notice that in the help file, because I looked for "crate" and glossed over |
Does the linked source code work with this method though? The last I checked, it doesn't. Clicking |
I often want to see documentation for a dependency (including build dependencies), but it's cumbersome to open it — I have to go to crates.io, find the dependency, and then follow its Documentation link.
Cargo already knows this link from metadata, so it could open the documentation for me.
I'd expect it to work like this:
Such functionality is in npm
npm docs package-name
.The text was updated successfully, but these errors were encountered: