The cargo
command line tool allows me to generate documentation for my crate, 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 platform-specific module I'm generating documentation for gets generated. How can I generate documentation for all platforms?