Crates.io | derive_preset |
lib.rs | derive_preset |
version | 0.1.0 |
source | src |
created_at | 2024-11-11 19:09:07.968173 |
updated_at | 2024-11-11 19:09:07.968173 |
description | Create presets, e.g. #[hash(Default)] for #[derive(PartialEq,Eq,Hash, Default)] |
homepage | |
repository | |
max_upload_size | |
id | 1444104 |
size | 16,088 |
Create derive presets inside a proc-macro crate - with generated docs attached to view which derives are included!
derive_preset::create!{
hashable "PartialEq,Eq,Hash,Clone,Debug"
serde "Serialize,Deserialize,Clone"
}
use my_proc_crate::*;
#[hashable(Clone,Default)]
struct Id(u32);
#[serde(Debug)]
struct Data(f32);