If you want to avoid the cost of parsing the data on every invocation, you could use build.rs
to parse it at build time into repr(C)
structs, and then use include_bytes!
:
2 Likes
If you want to avoid the cost of parsing the data on every invocation, you could use build.rs
to parse it at build time into repr(C)
structs, and then use include_bytes!
: