//! Procedural macros for the `pgqueue` crate.
//!
//! Do not depend on this crate directly; use the re-export at `pgqueue::job`.
use TokenStream;
/// Marks an `async fn` as a pgqueue job handler.
///
/// The accepted attributes and the signature contract are documented on the
/// re-export this is used through, `pgqueue::job`.
/// Marks an `async fn` as a pgqueue cron job, run on the given schedule.
///
/// The first argument is the cron expression; its syntax and whether it can
/// ever produce a UTC occurrence are checked at compile time. The rest are the
/// same configuration attributes as `job`. Cron functions take no payload —
/// every parameter is an extractor.
///
/// The accepted attributes are documented on the re-export this is used
/// through, `pgqueue::cron`.