Expand description
Proc macros for Spark.
#[spark_component(template = "spark/counter")]— on a struct: emits Serialize/Deserialize/Default derives, theComponentimpl, theDynComponentimpl, and theinventory::submit!forComponentEntry.#[spark_actions]— onimpl Counter { … }: scans the impl block forpub async fns (treated as actions),#[spark_mount],#[spark_on(…)],#[spark_updated(…)], and emitsDispatchEntry,ListenerEntry,MountEntrysubmissions plus a generated dispatcher function. The original impl block is preserved (minus the marker attributes).#[spark_mount],#[spark_on("event")],#[spark_updated("field")]— marker attributes consumed by#[spark_actions]. On their own they compile to a no-op (socargo checkworks even if#[spark_actions]is missing — the actions simply won’t be registered).