#nasm #include #compile #compile-time #macro #proc-macro #transformed

nightly macro build include-transformed

Include transformed files at compile time

4 releases

0.2.2 Jun 14, 2023
0.2.1 Feb 4, 2022
0.2.0 Jan 14, 2022
0.1.0 Jan 14, 2022

#9 in #nasm

Download history 15/week @ 2024-01-08 1/week @ 2024-02-19 13/week @ 2024-02-26 19/week @ 2024-03-11 71/week @ 2024-04-01

90 downloads per month
Used in libhermit-rs

MIT/Apache

10KB
73 lines

include-transformed

github crates.io docs.rs

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!.

[dependencies]
include-transformed = "0.2"

Requirements

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.

License

This project is licensed under either of

at your option.

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in include-transformed by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2–12MB
~132K SLoC