Open imrn99 opened 2 months ago
This seems more like a rustdoc issue than Cargo. I'll transfer it to rust-lang/rust.
This seems more like a rustdoc issue than Cargo. I'll transfer it to rust-lang/rust.
You're right, I jumped the gun a bit because of my build script. Thanks!
Problem
I generated documentation for my project, first using stable and then nightly (to document features). The doc generated by the nightly toolchain is formatted very strangely. After removing / adding the
doc_auto_cfg
nightly feature, it seems that the feature is the cause of this:doc_auto_cfg
)doc_auto_cfg
)While I would expect feature-dependent items to have their formatting altered, it seems that every item is affected here.
Steps
cargo +nightly doc
, see resultdoc_auto_cfg
feature, repeat step 2Possible Solution(s)
FWIW I'm guessing there is some hard-coded html/css somewhere to handle the small feature note; maybe the position of the note puts a constraint on text width?
Notes
I'm guessing the issue occurs whenever there is a public re-exports of an tiem that "has a public path".
I have a custom build script to conditionally enable some gated features depending on the toolchain used to build:
Version
Nightly