rust-bitcoin / rust-bip39

A Rust library for working with Bitcoin BIP-39 mnemonics
Creative Commons Zero v1.0 Universal
96 stars 61 forks source link

Docsrs API documentation fails to display feature-gated items #48

Open pezcore opened 1 year ago

pezcore commented 1 year ago

For example: Mnemonic::generate, Mnemonic::generate_in and Mnemonic::generate_in_with are completely omitted from the API documentation, and there is no mention of the features that enable them: 2023-03-11-135525_1008x1143_scrot

From the API documentation alone, one would have no idea that this functionality exists or how to use it.

Instead, these feature gated items should appear in the API documentation along with a marker that identifies them as being available only with certain crate features enabled. Here is an example of how it should look taken from the k256 crate: 2023-03-11-140233_541x184_scrot .