uom icon indicating copy to clipboard operation
uom copied to clipboard

docs.rs seems somewhat broken

Open jaskij opened this issue 10 months ago • 2 comments

If you look, for example, at si::pressure::Pressure there's over a hundred instances of the ceil() listed in the sidebar. Makes browsing the documentation somewhat difficult to read.

I'm not entirely sure if the issue is with the way uom does things, or something with the way docs.rs renders things, so I wanted to get your input first.

jaskij avatar Feb 13 '25 17:02 jaskij

It looks like cargo doc generates one entry for each possible unit that can be used as the generic parameter to ceil, fract, ...

Not ideal, so I'm leaving this open to see if we can find a way to de-duplicate the entries.

iliekturtles avatar Feb 16 '25 20:02 iliekturtles

It looks like cargo doc generates one entry for each possible unit that can be used as the generic parameter to ceil, fract, ...

Hmm... that sounds more like a bug with generating the documentation, truth be told.

jaskij avatar Feb 19 '25 14:02 jaskij