Skip to main content

Crate myko_macros

Crate myko_macros 

Source

Attribute Macros§

myko_category
Declare an open, downstream-defined Myko entity category.
myko_command
Generates a command with handler struct and registration.
myko_edge
Register a [GraphEdge] implementation without changing its item schema.
myko_in
Add an item type to one or more entity categories.
myko_item
Marks a struct as a Myko entity, generating queries, reports, commands, and supporting types.
myko_manual_cache_key
myko_non_hash_cache_key
myko_query
Define a typed Myko query.
myko_report
Generates a reactive report that can depend on queries and other reports.
myko_report_output
Adds standard derives and registers for TypeScript export.
myko_saga
Generates a saga with registration for runtime discovery.
myko_subtype
Declare a data subtype used by myko entities (field types, payloads, enum variants carried on commands/queries/reports/views).
myko_view
Defines a reactive view query.
myko_view_item
Marks a struct as a typed view item (id/hash should already be present).

Derive Macros§

MessageEvents
Derive macro that extracts serde rename values from enum variants and generates MessageEventRegistration inventory submissions.
TsNoop
Noop replacement for ts_rs::TS derive — emits no trait impls and declares the ts helper attribute so user-written #[ts(...)] in entity source doesn’t error out when ts_rs::TS is absent.