include_data 1.0.1

Include typed data directly in your executable
Documentation
1
2
3
4
5
6
7
8
9
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
 --> tests/bad/include_unsafe/wrong_size.rs:3:40
  |
3 | static TOO_SHORT: [u16; 30] = unsafe { include_data::include_unsafe!("../../test_data/binary_64") };
  |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: source type: `[u8; 64]` (512 bits)
  = note: target type: `[u16; 30]` (480 bits)
  = note: this error originates in the macro `include_data::include_unsafe` (in Nightly builds, run with -Z macro-backtrace for more info)