Skip to main content

Crate tenferro_extension_macros

Crate tenferro_extension_macros 

Source
Expand description

Procedural macros for tenferro extension crates.

§Examples

use tenferro_extension_macros::ExtensionFamilyId;

#[derive(ExtensionFamilyId)]
#[tenferro_extension(namespace = "my-crate", name = "fft", version = 1)]
struct FftOp;

assert_eq!(FftOp::FAMILY_ID, "my-crate.fft.v1");

Macros§

define_extension_runtime
Generate a standard extension runtime and registration function.

Derive Macros§

ExtensionFamilyId
Derive an inherent FAMILY_ID constant for an extension payload type.