Crate iridis_file_ext_derive

Source
Expand description

This module contains the macros FileExtPlugin and file_ext_plugin(runtime). It’s used to generate the necessary boilerplate code for creating a file extension plugin.

Attribute Macros§

file_ext_plugin
Use this macro to mark an impl block on a file extension plugin. This will alter the new and load methods to return a tokio::task::JoinHandle with the provided runtime. The parameter must be a function that takes an async closure and returns a JoinHandle.

Derive Macros§

FileExtPlugin
Apply this macro to a struct to generate the C symbols and the according tokio::runtime::Runtime.