arkhe-macros
L0 derive macros for arkhe-kernel.
Three procedural derives, one shared shape. Pair the derive with
serde::{Serialize, Deserialize}; the kernel provides canonical postcard
encoding by default.
Layer
Companion proc-macro crate for the L0 kernel. Not intended for direct use
outside of kernel consumers — the derives resolve paths inside
::arkhe_kernel::state::traits::*.
Derives
#[derive(ArkheAction)]— emitsSealed+ActionDeriv. Pair with a hand-writtenimpl ActionCompute for T; the kernel supplies thecanonical_bytes/from_bytes/approx_sizeblanket.#[derive(ArkheComponent)]— emitsSealed+Component. No user method required beyond serde derives.#[derive(ArkheEvent)]— same shape as Component; requiresDebug+ serde.
Every derive expects #[arkhe(type_code = N, schema_version = M)].
schema_version defaults to 1; type_code is mandatory.
Quick start
use ;
use ;
Documentation
- Book: https://aceamro.github.io/ArkheKernel/book/
- API reference: https://docs.rs/arkhe-macros
- Repository: https://github.com/aceamro/ArkheKernel
License
Dual-licensed under MIT OR Apache-2.0 at your option.