In standard rust crate documentation, on docs.rs, where do I find documentation of attributes?
In particular I am looking at the crate Clap and I want to find the documentation for default_value_t as in this from their examples but I would like to know what technique I should employ to find documentation of attributes generally.
Every attribute has a corresponding macro that interprets it. In this case, the clap::Parser derive macro is marked as #[doc(hidden)], but we can find the documentation from its original location at clap_derive::Parser. The clap maintainers decided to only write a stub for that, since they wrote the full documentation for its attributes elsewhere. Indeed, the top-level documentation for clap_derive links to the Derive Tutorial and the Derive Reference. That particular attribute is documented in the Arg Attributes section of the Derive Reference.
There is no general technique. Crate authors can write (or not write) their documentation in whatever format they please. You'll have to be creative. If the documentation is badly written so that it's not very discoverable, then unfortunately it's likely going to be hard to use. I don't think there's any specific or general technique for solving this problem (apart from the obvious but probably dissatisfying answer of asking the authors to write better docs).