Crate medea_macro

Source
Expand description

§medea-macro

Latest version Rust 1.65+ Unsafe Forbidden Rust docs

API Docs | Changelog

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§

dart_bridge
Generates code for extern Dart functions registration and calling.
dispatchable
Generates a *Handler trait and dispatching function for some event, represented as enum.
enum_delegate
Delegates function calls to enum variants field. Variants are expected to have only one field.
watchers
Generates ComponentState implementation on provided impl.

Derive Macros§

Caused
Generate implementation of Caused trait for errors represented as enum.