add #[allow(deprecated)] to derive implementations

Allow deprecated in the `Serialize`/`Deserialize`
derive implementations. This allows you to
deprecate structs, enums, struct fields, or enum
variants and not get compiler warnings/errors
about use of deprecated thing. We only do this
if `#[deprecated]` or `#[allow(deprecated)]` exist
on the root object or the variants of the root
object (if it is an enum).

Resolves #2195
This commit is contained in:
Ryan Crisanti
2025-01-08 13:26:17 -05:00
parent da3998acfb
commit ae38b27aee
9 changed files with 164 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
pub mod ast;
pub mod attr;
pub mod deprecated;
pub mod name;
mod case;