| Crates.io | ishikari-macros |
| lib.rs | ishikari-macros |
| version | 0.1.1 |
| created_at | 2025-06-14 19:27:14.24885+00 |
| updated_at | 2025-06-14 21:48:30.852252+00 |
| description | Procedural macros for the Ishikari job processing framework. Provides #[worker] and #[job] attribute macros for implementing worker traits and deriving job-related functionality. |
| homepage | |
| repository | https://github.com/scrogson/ishikari |
| max_upload_size | |
| id | 1712616 |
| size | 7,474 |
This crate provides procedural macros for the Ishikari job processing framework.
#[job]The #[job] attribute macro is used to derive job-related functionality for a struct. It automatically:
use ishikari::prelude::*;
#[derive(Debug)]
#[ishikari::job]
struct MyJob {
// Your job data here
}
#[worker]The #[worker] attribute macro is used to implement the Worker trait for a type. It provides:
use ishikari::prelude::*;
#[ishikari::worker(queue = "high_priority", max_attempts = 3)]
impl Worker for MyJob {
async fn perform(&self, ctx: Context) -> PerformResult {
// Your job processing logic here
Complete::default().into()
}
}
This crate is automatically included as a dependency when you add ishikari to your project. You don't need to add it separately.
MIT License