I have a binary data file that I would like to embed in the executable at compile time, and assign to a Nim array. Something similar to Rust's include_bytesmacro or this solution for C/C++. Is something like this available for Nim?
If you would like to process a binary file and assign it to an array without embedding the binary file itself, you can utilize the staticblock which will execute at compile time and return just what you need.