#include #nasm

nightly macro include-transformed

Include transformed files at compile time

3 unstable releases

Uses new Rust 2021

0.2.1 Feb 4, 2022
0.2.0 Jan 14, 2022
0.1.0 Jan 14, 2022

#8 in #nasm

Download history 235/week @ 2022-06-08 141/week @ 2022-06-15 381/week @ 2022-06-22 257/week @ 2022-06-29 101/week @ 2022-07-06 205/week @ 2022-07-13 483/week @ 2022-07-20 472/week @ 2022-07-27 54/week @ 2022-08-03 225/week @ 2022-08-10 38/week @ 2022-08-17 66/week @ 2022-08-24 116/week @ 2022-08-31 48/week @ 2022-09-07 19/week @ 2022-09-14 90/week @ 2022-09-21

274 downloads per month

MIT/Apache

9KB
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

~310–770KB
~17K SLoC