Skip to main content

ArkheComponent

Derive Macro ArkheComponent 

Source
#[derive(ArkheComponent)]
{
    // Attributes available to this derive:
    #[arkhe]
}
Expand description

Re-export of the kernel-companion derive macros. ArkheAction emits Sealed + ActionDeriv (pair with impl ActionCompute). ArkheComponent and ArkheEvent emit Sealed + the corresponding kernel trait — postcard-canonical defaults handle the byte round trip. Every derive expects #[arkhe(type_code = N, schema_version = M)]. Derive Sealed + Component. Default trait methods (postcard) cover canonical_bytes / from_bytes / approx_size — no user method required beyond serde::{Serialize, Deserialize} derives.