How can I create documentation for all platforms?

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?

+6
source share
1 answer

Source: https://habr.com/ru/post/1012461/


All Articles