This is a crate for abstracting over loading/embedding resources.
resource!("image.png") will expand to
include_bytes!("image.png") in release mode, but in debug mode will actually load the file at runtime.
This is the second of my gamedev-slanted crates that I’ve been tuning up recently. I’ve found this really useful for avoiding file IO in the distributed executable, while allowing me to modify assets at runtime when developing.
This release also has some other nice features like loading multiple files, and post-processing files with a loading function.
I hope others find it useful!