rust-lang / cargo

The Rust package manager
https://doc.rust-lang.org/cargo
Apache License 2.0
12.75k stars 2.42k forks source link

rustdoc: Generate docs for all platforms at once #3300

Closed valarauca closed 7 years ago

valarauca commented 7 years ago

The below code:

#[cfg(target-platform("windows")]
mod winstuff {
     /// Explanation of Windows-specific tasks
}

#[cfg(target-platfrom("linux")]
mod linstuff {
    /// Explanation of Linux-specific tasks
}

Will generate different docs depending where it is run, and how it is targeted. There appears to be noway to generate docs in a cross platform manner.

steveklabnik commented 7 years ago

This is a sorta-kinda-duplicate of https://github.com/rust-lang/rust/issues/1998

alexcrichton commented 7 years ago

Yeah this is mostly a rustdoc issue rather than a Cargo issue, so I'm going to close this in favor of https://github.com/rust-lang/rust/issues/1998