include_data 1.0.1

Include typed data directly in your executable
Documentation
1
2
3
4
5
6
7
8
error[E0013]: constants cannot refer to statics
 --> tests/bad/include_slice/const.rs:4:31
  |
4 | const BYTES_32_const: &[u8] = include_data::include_slice!(u8, "../../test_data/binary_32");
  |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: consider extracting the value of the `static` to a `const`, and referring to that
  = note: this error originates in the macro `include_data::include_slice` (in Nightly builds, run with -Z macro-backtrace for more info)