autumn-macros 0.4.0

Proc macros for the Autumn web framework
Documentation
1
2
3
4
5
6
7
8
9
10
//! `tasks![]` collection macro.
//!
//! Collects `#[scheduled]`-annotated task handlers into a `Vec<TaskInfo>`,
//! parallel to the `routes![]` macro.

use proc_macro2::TokenStream;

pub fn tasks_macro(input: TokenStream) -> TokenStream {
    crate::collect::collect_companions(input, "__autumn_task_info_")
}