mirror of
https://github.com/JakeStanger/rust-bindocs.git
synced 2026-07-11 11:15:43 +01:00
[GH-ISSUE #2] Default value information #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JakeStanger on GitHub (Jul 29, 2023).
Original GitHub issue: https://github.com/JakeStanger/rust-bindocs/issues/2
Both
serdeandclapprovide default values via attributes on the type. It would be cool to automatically extract these and include them in the generated docs, along side the type information.Clap should be fairly trivial since the literal value is included in the attribute. Serde-backed types will be harder, since they use a function to determine the value. It should be possible to cover at least some cases though.