obs-macros 0.2.0

Procedural macros for the obs SDK: #[derive(Event)], emit!, scope!, instrument.
Documentation

Procedural macros for the obs SDK.

Phase-1 surface (impl-plan task 1.9):

  • [Event] (#[derive(Event)]) — emits EventSchema impl, EventSchemaErased impl, linkme::distributed_slice registration, typed builder, and the const-eval lint block (L001/L002/L003/L011).
  • [emit] — terse obs::emit!(MyEvent { … }) shorthand.
  • [scope] — placeholder (full impl in Phase 3 task 3.3).

See spec 12 § 1.2 (Rust-first authoring) and spec 13 § 2 (obs::scope!).