Carpenter
Create multiple config files easily.
Support
- Support for all Sized integers
- Support for Strings
- Lightweight
- Saves as binary for small file size
Installation/Usage
Installation
To use this crate you need these dependencies:
[]
= "0.4.1"
= "0.1.0"
Usage
use ConfigManager;
// Create a struct and derive it with ConfigManager
Config file
- Byte order is Big endian.
- i32 = 4 bytes so 0x00-0x03 is 0x00_00_01_90 which is 400 in decimal.
- bool = 1 byte so 0x04-0x04 is 0x01 which is true in rust.
- String = is in this case 4 bytes so 0x05-0x08 is 0x48_65_79_00 which is "Hey\0". String gets null terminated.