I know that cargo doc --open does it perfectly. However I like to view it from my http server. Certainly Rust git repository has all necessary code. Just point me to the place in it.
After building with cargo doc, the files to serve are in ./target/doc/.
If you want to view the crate's documentation, its index page is ./target/docs/{crate-name}/index.html
2 Likes