rust-random / rand

A Rust library for random number generation.
https://crates.io/crates/rand
Other
1.6k stars 423 forks source link

Rename `doc_cfg` to `docsrs` and use `doc_auto_cfg` #1450

Closed newpavlov closed 1 month ago

newpavlov commented 1 month ago

Renaming the configuration option also allows to enable back the unexpected_cfgs lint.

I've checked generated docs and it does not look like using doc_auto_cfg instead of explicit doc_cfgs causes any issues. The check was by no means exhaustive, but most cases look perfectly good.