static_include_bytes!
MacroLike the built-in include_bytes!
macro, but produces a static array definition.
```rust use staticincludebytes::staticincludebytes;
staticincludebytes!(#[nomangle] TENBYTES = concat!(env!("CARGOMANIFESTDIR"), "/ten_bytes.bin"));
asserteq!(TENBYTES.len(), 10); asserteq!(&TENBYTES, b"0123456789"); ```
The macro invocation is equivalent to static TEN_BYTES: [u8; _] = include_bytes!(...);
, but as of 2023-08-18, you cannot write this directly due to https://github.com/rust-lang/rust/issues/85077 .