5 releases (3 breaking)

new 0.4.0 Jan 28, 2025
0.3.1 Jan 28, 2025
0.3.0 Jan 28, 2025
0.2.0 Jun 26, 2024
0.1.0 Jun 25, 2024

#1943 in Parser implementations

Download history 1/week @ 2024-10-02 3/week @ 2024-10-09 4/week @ 2024-10-16 4/week @ 2024-10-30 5/week @ 2024-11-06

195 downloads per month
Used in quake_bspinfo

MIT license

19KB
486 lines

bspparser Test crates docs.rs

Parse Quake .bsp files

Usage

let file = &mut fs::File::open("tests/files/povdmm4.bsp")?;
let bsp = BspFile::parse(file)?;
println!("{:?}", bsp.entities);
[
    {
        "wad": "gfx/base.wad", 
        "worldtype": "2", 
        "sounds": "6", 
        "message": "The Abandoned Base", 
        "classname": "worldspawn"
    },
    {
        "classname": "light_fluoro",
        "origin": "264 -32 88"
    }
    // ...
]

Dependencies

~1.5MB
~22K SLoC