0.2.0 |
|
---|---|
0.1.0 |
|
#10 in #doom
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