You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A workaround is to replace conditional docs with conditional code within the test. E.g.
//! Since 2.0.0, the minimum supported Rust version is 1.56.//!//!```//! # #[macro_use]//! # extern crate downcast_rs;//! # #![cfg(feature = "sync")]//! // <Code to ignore when "sync" is enabled.>
Would still love to have a way to discovering such issues before publishing.
Current Behavior
I just published
downcast-rs
v2.0.0 and the documentation appears misformatted even though it appears fine on docs.rs. Compare:This seems due to code within the documentation that is only conditionally run for testing based on whether a feature is enabled:
Effectively, the code block is being started with
```
when thesync
feature is enabled and with```ignore
when it's disabled.Actual code here.
Also:
Expected Behavior
crates.io should render the documentation as well as docs.rs does.
The text was updated successfully, but these errors were encountered: