The cargo
command line tool allows me to create documentation for my box, but I have structures like:
#[cfg(target-platform("windows")] mod winstuff { /// Explanation of Windows-specific tasks } #[cfg(target-platfrom("linux")] mod linstuff { /// Explanation of Linux-specific tasks }
When I run cargo docs --no-deps
, only the module created for the platform is created for which I am creating documentation. How to create documentation for all platforms?
source share