Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check standard library documentation offline? [duplicate]

I found rustdoc command and I kind of expected it to work like pydoc. Unfortunately, rustdoc std::io:stdin doesn't do what I'd like it to. Is there a way to view standard library documentation in an offline form, either via command line or some kind of built in web server, like Python's pydoc allows?

like image 299
d33tah Avatar asked Dec 18 '22 11:12

d33tah


1 Answers

rustdoc is used to build the documentation of a package. Not to access standard doc.

If you use rustup, you can open the offline documentation using rustup doc --std and then use the search box on the page (works offline too). If you don't use rustup, the documentation might still have been installed somewhere on your system but the path would depend on the system and installation procedure.

like image 73
mcarton Avatar answered Dec 31 '22 01:12

mcarton