peppi 1.0.0-alpha.6

Parser for Slippi replay files
# Peppi

Peppi is a Rust parser for [.slp]( game replay files for [Super Smash Brothers Melee]( for the Nintendo GameCube. These replays are generated by Jas Laferriere's [Slippi]( recording code, which runs on a Wii or the [Dolphin]( emulator.

Peppi is fairly full-featured already, but still under active development. **APIs are still subject to breaking change** until version 1.0 is released.

## Installation

In your `Cargo.toml`:

peppi = "1.0.0-alpha.5"

## Usage

### Object-based parsing:

use std::{fs, io};

fn main() {
    let mut buf = io::BufReader::new(
    let game = peppi::game(&mut buf, None, None).unwrap();
    println!("{:#?}", game);

### Event-driven parsing:

use std::{fs, io};

use peppi::model::frame;
use peppi::serde::de::{Handlers, FrameEvent, PortId};

struct FramePrinter {}

impl Handlers for FramePrinter {
    fn frame_post(&mut self, post: FrameEvent<PortId, frame::Post>) -> io::Result<()> {

fn main() {
    let f = fs::File::open("game.slp").unwrap();
    let mut r = io::BufReader::new(f);
    let mut handlers = FramePrinter {};

    peppi::parse(&mut r, &mut handlers, None).unwrap();

## Inspector

⚠ The `slp` tool has moved to the [peppi-slp]( crate.