include_data 1.0.1

Include typed data directly in your executable
Documentation
1
2
3
4
5
6
7
error[E0080]: could not evaluate static initializer
 --> tests/bad/include_slice/u16_data31.rs:4:27
  |
4 | static BYTES_31: &[u16] = include_data::include_slice!(u16, "../../test_data/binary_31");
  |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'Included file size is not divisible by target type size', $DIR/tests/bad/include_slice/u16_data31.rs:4:27
  |
  = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `include_data::include_slice` (in Nightly builds, run with -Z macro-backtrace for more info)