A strongly-typed Rust based library wrapper for game resource JSON files.
Uses quicktype to generate serde
compatible
Rust structs.
Note that this is still a work-in-progress. Currently only generates serde structs for
ExcelBinOutput
JSON files.
Ensure that pnpm
and a node
environment is installed (check .node-version
to see which version to use).
pnpm install
to install the node dependencies needed to generate Rust code.- Ensure that the
GAME_DATA_FOLDER
environment variable is set to the path containing the game's JSONExcelBinOutput
resource folder (we don't provide that here, you'll have to get that yourself). If not set, this defaults to../AnimeGameData/
pnpm generate
to generate Rust source code in thegenshindata-rs
package.- Double-check generated
.rs
files ingenshindata-rs
package
Currently generates code in:
genshindata-rs/src/excelbinoutput
genshindata-rs/src/language
Currently updated for game version: OSRELWin4.2.0_R18963989_S18955874_D18963950