HPI-rs is a work-in-progress Rust library and command line program to manipulate .hpi files for the game Total Annihilation Kingdoms.
Currently, only the ability to READ hpi files is supported.
In the future, it will also support the ability to create new hpi files and modify existing ones.
Make sure you have cargo installed. Then run the following command on a terminal:
cargo install --git https://github.com/clokken/hpi-rs
Then check out the wiki to see how to use the commands.
To use this in a Rust program, simply add this to your project's Cargo.toml dependencies:
[dependencies]
hpi = { git="https://github.com/clokken/hpi-rs" }
Then see this repository (TODO) for some examples on how to use the library in a Rust program.
This is my first Rust project and I'm using it as a way to learn Rust so the codebase will probably change a lot from version to version.