Crate membrane_macro

source ·

Macros

  • For use inside #[async_dart] functions. Used to create an emitter for use with impl Emitter<Result<T, E>> and impl StreamEmitter<Result<T, E>> return types.
  • A helper macro that can be used to ensure that Membrane types are still accessible if the workspace crate which generates the cdylib binary has no instances of Membrane macros such as #[async_dart] or #[sync_dart].

Attribute Macros

  • Apply this macro to Rust functions to mark them and their input/output types for Dart code generation.
  • Apply this macro to enums to mark them for Dart code generation.
  • Apply this macro to synchronous Rust functions to mark them and their input/output types for Dart code generation.