(input: proc_macro::TokenStream)
| 93 | /// - `#[zeroize(skip)]`: skips this field or variant when calling `zeroize()` |
| 94 | #[proc_macro_derive(ZeroizeOnDrop, attributes(zeroize))] |
| 95 | pub fn derive_zeroize_on_drop(input: proc_macro::TokenStream) -> proc_macro::TokenStream { |
| 96 | derive_zeroize_on_drop_impl(syn::parse_macro_input!(input as DeriveInput)).into() |
| 97 | } |
| 98 | |
| 99 | fn derive_zeroize_on_drop_impl(input: DeriveInput) -> TokenStream { |
| 100 | let zeroizers = generate_fields(&input, quote! { zeroize_or_on_drop }); |
nothing calls this directly
no test coverage detected