gma-lite
Minimal Rust library to read and write Garry's Mod Addon (.gma) archives.
- Small API:
crate::readandcrate::Builder - Types:
crate::GMAFile,crate::GmaError - Format constants:
crate::HEADER,crate::VERSION
Usage
Read a GMA
use read;
Build a GMA
use Builder;
API
- Reader:
crate::read->Result<Vec<crate::GMAFile>, crate::GmaError> - Writer:
crate::Builderwithwrite_to<W: std::io::Write>(&self, w) -> Result<(), crate::GmaError> - Types:
crate::GMAFile,crate::GmaError
See src/lib.rs for format details and error types.
License
MIT