uniffi-rs icon indicating copy to clipboard operation
uniffi-rs copied to clipboard

Allow exposed APIs to indicate items are deprecated.

Open mhammond opened this issue 3 years ago • 3 comments

It would seem ideal if we can mark an item (for a vague definition of "item") in the UDL as deprecated (eg, a [Deprecated] attribute) . The foreign bindings could then generate whatever annotations make sense in that language (eg, @deprecated for Python) so that the final consumers of the API can know about the deprecation.

┆Issue is synchronized with this Jira Task ┆Issue Number: UNIFFI-156

mhammond avatar Apr 21 '22 02:04 mhammond

Any plan to support this with proc-macros?

yukibtc avatar Apr 12 '24 21:04 yukibtc

You can imagine metadata holding some named attributes for items - docstrings could also be carried here for example.

mhammond avatar Jan 06 '25 04:01 mhammond

on it @mhammond thank you!

engali94 avatar Aug 11 '25 14:08 engali94