[][src]Macro azure_functions_shared_codegen::generated_mod

generated_mod!() { /* proc-macro */ }

A macro to generate a module from code created in the output directory.

This is a "procedural macro" solution to https://github.com/rust-lang/rfcs/issues/752.

Examples

This example uses $OUT_DIR/MyModule.rs to replace the annotated module with the generated code in the output directory:

This example is not tested
use azure_functions_shared_codegen::generated_mod;

#[generated_mod]
mod MyModule {}