hitbox-derive 0.2.1

Derive macros for hitbox caching framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Parser for CacheableRequest derive macro.

use darling::FromDeriveInput;
use syn::{Generics, Ident};

/// Parsed input for the CacheableRequest derive macro.
#[derive(Debug, FromDeriveInput)]
#[darling(attributes(cacheable_request), supports(struct_any, enum_any))]
pub struct Source {
    /// The type name.
    pub ident: Ident,
    /// Generic parameters.
    pub generics: Generics,
    // Future: field-level validation attributes will be added here
}