Asset Procmac

Some i/o macros that help with applications that need assets, by importing them using normal FS in debug builds, but directly embedding the data in the application in release builds.

Installation

shell cargo add asset_procmac or toml [dependencies] asset_procmac = "[CURRENT VERSION]"

Quick start

```rust use assetprocmac::includeif_release; use std::fs;

// In file a.txt: // // hi mom

fn main() { fs::removefile("a.txt"); std::thread::sleep(std::Duration::fromsecs(3)); prinln!("{}", includeifrelease!("a.txt")); // Panics in debug builds, but prints the contents of a.txt in release builds. //This is because the file is built into the executable in release builds, but simply read during runtime in debug builds. //This is handy because it removes the need to recompile every time an asset changes. } ```

Whats new

v0.2.1, v0.2.2