Skip to content

w3champions/casclib-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

casclib-rs

Safe CascLib bindings for Rust

use casclib::{open};

let storage = open(r#"C:\Program Files (x86)\StarCraft II\SC2Data"#).unwrap();

// walk all files 
for r in storage.files() { 
  let entry = r.expect("file entry"); 
  let name = entry.get_name(); 
  if name.ends_with(".galaxy") { 
    // found a galaxy file!
  }
}

// extract a file by path
let file = storage.entry(TEST_FILE).open().unwrap();
file.extract(writer).unwrap();

About

Safe CascLib bindings for Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%