zombie_derive

Crates.iozombie_derive
lib.rszombie_derive
version0.0.4
created_at2025-12-22 08:57:49.626381+00
updated_at2025-12-24 18:15:10.823814+00
descriptionDerive macros for zombie-rs (ZombieOps)
homepage
repositoryhttps://github.com/kawayww/zombie-rs
max_upload_size
id1999359
size9,124
K.Y. (KawaYww)

documentation

README

zombie_derive

Derive macros for zombie-rs.

Overview

This crate provides the #[derive(ZombieOps)] macro for automatically implementing the ZombieOps trait on custom types.

Usage

use zombie_rs::prelude::*;

#[derive(Clone, ZombieOps)]
struct MyData {
    value: i32,
    name: String,
}

fn main() {
    Runtime::init();
    let data = Zombie::new(MyData { value: 42, name: "test".into() });
    println!("{}", data.get().value);
}

Requirements

  • Requires Rust nightly (zombie-rs uses unstable features)
  • All fields must implement Clone and ZombieOps

License

MIT

Commit count: 0

cargo fmt