Crate medea_macro
source ·Expand description
medea-macro
Internal macros for Medea media server project.
DO NOT use this crate directly. It’s for internal use by Medea crates only.
License
Copyright © 2019-2023 Instrumentisto Team, https://github.com/instrumentisto
This software is subject to the terms of the Blue Oak Model License 1.0.0. If a copy of the BlueOak-1.0.0 license was not distributed with this file, You can obtain one at https://blueoakcouncil.org/license/1.0.0.
Attribute Macros
- Generates code for
extern
Dart functions registration and calling. - Generates a
*Handler
trait and dispatching function for some event, represented asenum
. - Delegates function calls to enum variants field. Variants are expected to have only one field.
- Generates
ComponentState
implementation on providedimpl
.
Derive Macros
- Generate implementation of
Caused
trait for errors represented as enum.