#cargo #docs #web-server #serve #cargo-subcommand #serving #docserve

bin+lib cargo-docserve

Cargo subcommand for serving docs with an embedded webserver

1 unstable release

Uses old Rust 2015

0.1.0 Aug 27, 2017

#26 in #serving

MIT license

7KB
133 lines

cargo-docserve

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).

Installation

cargo install cargo-docserve

Usage

cargo docserve -b 0.0.0.0:8888

Dependencies

~5.5MB
~121K SLoC