| Crates.io | clew-derive |
| lib.rs | clew-derive |
| version | 0.0.1 |
| created_at | 2026-01-03 19:17:27.190672+00 |
| updated_at | 2026-01-03 19:17:27.190672+00 |
| description | Procedural macros for the clew UI framework. |
| homepage | |
| repository | https://github.com/sysint64/clew |
| max_upload_size | |
| id | 2020689 |
| size | 17,716 |
Procedural macros for the clew UI framework.
#[derive(WidgetState)]Implements WidgetState trait for custom widget state structs.
#[derive(Default, WidgetState)]
pub struct MyWidget {
counter: i32,
}
#[derive(Identifiable)]Implements Identifiable trait. Looks for a field marked with #[id], or falls back to a field named id.
#[derive(Identifiable)]
pub struct Item {
#[id]
item_id: u64,
name: String,
}
// Or simply:
#[derive(Identifiable)]
pub struct Item {
id: u64,
name: String,
}
Licensed under either of Apache License, Version 2.0 or MIT license at your option.