Is there a way of forcing private items documentation on docs build?
It can be done manually adding the doc flag --document-private-items, but I would like to force it in Cargo.toml level for example.
Is there a way of forcing private items documentation on docs build?
It can be done manually adding the doc flag --document-private-items, but I would like to force it in Cargo.toml level for example.
Copyright © 2021 Jogjafile Inc.
You can do this not with
Cargo.tomlbut cargo's config. In your project (or in$CARGO_HOMEif you want this to apply for all of your projects) create.cargo/config.tomlwith following contents:Here is the link to the documentation.