bin2hpp/README.md
2025-04-08 19:00:24 +01:00

517 B

bin2hpp

One day we'll get #embed and std::embed, but today is not that day.

CLI tool for converting files into header files which one can use to directly embed data in their C++ projects.

Building

  1. cargo build

Future improvements

  • Not panicking if the source data is not UTF-8 encoded text when operating in text mode
  • C support
  • Choices between std::array, C-style arrays, std::string_view & C strings
  • Customisable data types & data widths (unsigned vs. signed, uint8_t vs uint16_t, etc.)