Add a docserve
command to cargo
.
cargo-docserve
builds the documentation for your crate and its dependencies,
then runs a tiny static webserver in order to serve the HTML. This is useful
when developing on a remote machine where you don't have a web browser (and
thus can't just cargo doc --open
).
cargo install cargo-docserve
cargo docserve -b 0.0.0.0:8888