Expand description

Macros for including transformed files at compile time.

The macros include a file similar to include_bytes!, but transform the data before inclusion. The transformation could be, for example, assembling assembly code to machine code (include_nasm_bin!).

The original purpose of this project was including assembled application processor initialization code in libhermit-rs using include_nasm_bin!.

include-transformed = "0.2"


This project depends on the unstable features proc_macro_span #54725 and proc_macro_expand #90765, which are only available on the nightly toolchain channel.


  • Assembles a file with NASM into raw binary and includes the output as a reference to a byte array.