| Crates.io | dynpatch-macro |
| lib.rs | dynpatch-macro |
| version | 0.1.0 |
| created_at | 2025-10-15 10:50:53.192694+00 |
| updated_at | 2025-10-15 10:50:53.192694+00 |
| description | Procedural macros for dynpatch - #[patchable], #[patch_impl], #[patch_trait] |
| homepage | |
| repository | https://gitlab.com/TIVisionOSS/crates/dynpatch |
| max_upload_size | |
| id | 1884176 |
| size | 9,920 |
Procedural macros for the dynpatch hot-patching system.
#[patch_trait] - Mark traits as patchable interfaces#[patchable] - Mark functions/methods for hot-swapping#[patch_impl] - Mark struct implementations as patches#[patch_entry] - Mark patch initialization entry points#[derive(HotConfig)] - Derive hot-reloadable configuration supportuse dynpatch_macro::*;
#[patch_trait]
pub trait Handler {
fn handle(&self, request: Request) -> Response;
}
#[patchable]
fn process(data: &str) -> String {
data.to_uppercase()
}
MIT - See LICENSE file for details