Skip to main content

serve_crate_doc_watch

Function serve_crate_doc_watch 

Source
pub async fn serve_crate_doc_watch(
    manifest_path: &PathBuf,
    addr: &SocketAddr,
    build_id: Arc<AtomicU64>,
) -> Result<(), Error>
Expand description

serve crate doc in watch mode on addr.

Uses handle_crate_request_watch which injects a live-reload script into HTML pages and serves the /_buildid endpoint.