How to generate rustdoc documentation for the [build-dependencies] in Cargo.toml?

1.1k Views Asked by At

I am working on a small project that uses a build.rs file intensively. It seems that cargo doc --all generates the documentation for the [dependencies] but not for the [build-dependencies] in Cargo.toml.

How can I generate the offline documentation for the build-dependency crates?

1

There are 1 best solutions below

0
On

You cannot:

In the meantime, move it temporarily to [dependencies] to generate the docs or make a new project just for docs.