rustls-ffi
rustls-ffi copied to clipboard
docgen/website: show deprecated function warnings on docs website
Updates the docgen tool from the tools crate to parse the DEPRECATED_FUNC macro invocations ahead of function declarations. Once parsed we can pull out the argument message and include that in the JSON data generated by the tool.
With the deprecated messages the website Zola templates can reference them to add a note of the deprecation in the TOC and to add a warning banner to the item's docs rendering.
Resolves https://github.com/rustls/rustls-ffi/issues/582
Examples: