gvas
The gvas crate is a Rust library that allows parsing of gvas save files.
Save files
A gvas save file is a binary file format used by the Unreal Engine 4 (UE4) game engine to store persistent data such as player progress, game settings, and other game-related information.
Usage
The crate can be added to a Rust project as a dependency by running the command
cargo add gvas.
Serde Support
This crate supports serde deserialization and serialization. To use serde with
gvas, the serde feature must be enabled by running
cargo add gvas --features serde.
Examples
The example code provided below demonstrates how to use the gvas crate to read a gvas save file. The code first reads the contents of the gvas .sav file into a byte vector. Then, a Cursor is created from the byte vector to allow reading from the vector as if it were a file. Finally, the GvasFile struct's read() method is used to parse the data from the cursor and produce a GvasFile struct. The GvasFile struct represents the parsed data from the gvas save file and can be used to read and modify the data.
use GvasFile;
use ;
let mut file = open.unwrap;
let mut data = Vecnew;
file.read_to_end.unwrap;
let mut cursor = new;
let gvas_file = read;
println!;
The tests directory contains several tests that demonstrate how to use the crate to read and write gvas files.
Contributing
Please see the CONTRIBUTING document for guidelines on how to contribute to this project.
License
This library is distributed under the terms of the MIT license. See the LICENSE file for details.