For when you want: 1. Runtime configuration for after the binary is compiled 2. A single file binary
This library allows for taking the final result binary, and just concatenating the configuration to the end:
cat target/debug/binary <(echo -n "CATCONF") conf > confedbinary
Great, but how to get the configuration back out and use it in the code? catconf!
It's use is pretty simple:
use catconf::ConfReaderOptions;
let confreader = ConfReaderOptions::new(b"CATCONF".tovec()).readfromexe()?;
This returns a ~Vec