Skip to content

New option: cargo doc --watch #10813

Closed as not planned
Closed as not planned
@FauconFan

Description

@FauconFan

Problem

Hi, I would like to propose a new feature for the doc subcommand. It would be nice to regenerate the documentation when source code files change. This could be done relatively easily using the notify crate. Like mdbook does. A current workaround could be:

cargo watch -x doc

This workaround uses the cargo-watch extension for cargo, but this feature could be handle directly into cargo ?

Proposed Solution

No response

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions