Crate worker_macros

Source

Attribute Macrosยง

durable_object
Integrate the struct with the Workers Runtime as Durable Object.
Requires the DurableObject trait with the durable_object attribute macro on the struct.
event
The event macro is used to denote a Worker handler, essentially binding from the JS runtime to a Rust function.
send
Convert an async function which is !Send to be Send.