Skip to main content

Crate id_effect_proc_macro

Crate id_effect_proc_macro 

Source
Expand description

Procedural macros for the workspace effect crate.

Doc links cannot use the id_effect::… prefix here: this crate defines an effect function, which shadows the effect crate name in rustdoc link resolution.

Macros§

effect
Procedural do-notation macro for [id_effect::Effect].
match_effect
Enum match helper — prefix variant patterns with EnumPath for exhaustiveness checking.

Attribute Macros§

capability
Deprecated no-op (since 0.3; removed in 0.7): returns the item unchanged.
distributed_behavior
Mark a process struct as a remotely spawnable behavior.
effect_tagged
Injects pub _tag: &'static str, an [id_effect::match_::HasTag] impl, and EFFECT_TAGGED_TAG on the struct (see generated inherent associated const).

Derive Macros§

EffectData
Derive macro: structural PartialEq, Eq, and Hash for Effect.ts-style data types.
Fsm
Derive id_effect_fsm::Fsm (initial state + transition table) for a fieldless state enum.
Optics
Derive field lenses and enum prisms for [id_effect_optics].
ProviderSpec
Derive [id_effect::ProviderSpec] when paired with #[provides(Capability)].
Schema
Derive an inherent schema() constructor and an [id_effect::schema::HasSchema] impl for a struct with named fields (JSON-shaped [id_effect::schema::Unknown] wire).
SchemaParser
Deprecated alias of Schema; expands to exactly the same code.