kizzasi-macros 0.1.0

Procedural macros for Kizzasi AGSP
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented0 out of 3 items with examples
  • Size
  • Source code size: 10.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 313.36 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • cool-japan

kizzasi-macros

Procedural macros for the Kizzasi AGSP ecosystem.

Overview

This crate provides derive macros and procedural macro helpers for Kizzasi, enabling ergonomic configuration patterns and reducing boilerplate code.

Features

  • #[derive(KizzasiConfig)] - Automatic builder pattern generation for configurations
  • #[derive(Preset)] - Generate preset constructor functions
  • #[derive(Instrumented)] - Automatic metrics instrumentation

Usage

Add this to your Cargo.toml:

[dependencies]
kizzasi-macros = "0.1.0"

Example:

use kizzasi_macros::KizzasiConfig;

#[derive(KizzasiConfig)]
struct MyConfig {
    learning_rate: f32,
    batch_size: usize,
}

// Automatically generates builder pattern
let config = MyConfig::builder()
    .learning_rate(0.001)
    .batch_size(32)
    .build()?;

Documentation

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.