Skip to content

Codycody31/squad-replay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

squadreplay

Crates.io docs.rs License: MPL-2.0

squadreplay is a library-first Rust parser and CLI for Squad UE5 replay data.

The library exposes typed bundle APIs for:

  • parsing .replay files into a Bundle
  • reading and writing .sqrj.json bundles
  • reading and writing .sqrb bundles
  • deriving compatibility JSON from a parsed bundle

Library

Add as a dependency (without the CLI):

[dependencies]
squadreplay = { version = "0.1.0-alpha.1", default-features = false }
use squadreplay::{parse_file, ParseOptions};

fn main() -> Result<(), squadreplay::Error> {
    let bundle = parse_file("match.replay", &ParseOptions::default())?;
    println!("players: {}", bundle.players.len());
    Ok(())
}

CLI

Install the binary:

cargo install squadreplay
squadreplay parse match.replay --format sqrj,sqrb --output out/match
squadreplay inspect match.replay
squadreplay show out/match.sqrb
squadreplay unpack out/match.sqrb --output out/unpacked

Feature Flags

Feature Default Description
cli yes Builds the squadreplay binary (pulls in clap)

Library-only consumers should disable default features to avoid the clap dependency.

Minimum Supported Rust Version

Rust 1.85 (edition 2024).

About

Rust CLI and library for turning Squad UE5 replay files into clean JSON and binary bundles.

Topics

Resources

License

Stars

4 stars

Watchers

1 watching

Forks

Releases

No releases published

Contributors

Languages