#wad #running #engine #game #doom #parallel #format

yanked wad-rs

Parsing library for the WAD file format

0.2.0 Jun 25, 2020
0.1.0 Feb 21, 2020

#10 in #doom

Apache-2.0

12KB
228 lines

WAD.rs

wad-rs is a parser for WAD files which are used by, for example, games running on the DOOM engine

Resources:

Usage:

use wad_rs::Wad;
use std::{fs::File, io::prelude::*};

fn main() {
    let mut data = Vec::new();

    File::open("[Path to WAD]").read_to_end(&mut data).unwrap();
    let parsed_wad = Wad::parse(data).unwrap();

    println!("WAD type: {}", parsed_wad.wad_type());
}

Features:

  • parallel: This feature parses the file using Rayon

lib.rs:

wad-rs is a parser for WAD files which are used by, for example, games running on the DOOM engine

Resources:

Usage:

use wad_rs::Wad;
use std::{fs::File, io::prelude::*};

fn main() {
    let mut data = Vec::new();

    File::open("[Path to WAD]").read_to_end(&mut data).unwrap();
    let parsed_wad = Wad::parse(&data).unwrap();

    println!("WAD type: {}", parsed_wad.wad_type());
}

Features:

  • parallel: This feature parses the file using Rayon

Dependencies

~45–350KB