This crate allows loading text data files as serialized binary objects.
Data files can have a syntax similar to rust data definition, and must follow a recipe (or
schema) defined either in a recipe file or built in the program using the Recipe trait.
When a data file is parsed, a binary representation is built and cached into a binary file, and this binary representation can then be easily deserialized using, for instance, serde and bincode libraries. If the data file is not modified, loading the data is then very fast. This is very efficient for instance for storing complex asset files in a comprehensible and easily modifiable format. It may also be useful for loading configuration files.
Basic example
use load_from_string;
use Recipe;
use Deserialize;
let config: GameConfig = load_from_string.unwrap;