squadreplay 0.1.0-alpha.1

Library-first Rust parser and CLI for Squad UE5 replay files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::Result;
use crate::bundle::Bundle;
use std::path::Path;

/// Write a `.sqrj.json` bundle.
pub fn write(bundle: &Bundle, path: impl AsRef<Path>) -> Result<()> {
    crate::formats::write_sqrj(bundle, path)
}

/// Read a `.sqrj.json` bundle.
pub fn read(path: impl AsRef<Path>) -> Result<Bundle> {
    crate::formats::read_sqrj(path)
}