| Crates.io | zombie_derive |
| lib.rs | zombie_derive |
| version | 0.0.4 |
| created_at | 2025-12-22 08:57:49.626381+00 |
| updated_at | 2025-12-24 18:15:10.823814+00 |
| description | Derive macros for zombie-rs (ZombieOps) |
| homepage | |
| repository | https://github.com/kawayww/zombie-rs |
| max_upload_size | |
| id | 1999359 |
| size | 9,124 |
Derive macros for zombie-rs.
This crate provides the #[derive(ZombieOps)] macro for automatically implementing the ZombieOps trait on custom types.
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);
}
Clone and ZombieOpsMIT