| Crates.io | ra2-mix |
| lib.rs | ra2-mix |
| version | 0.0.2 |
| created_at | 2025-04-25 06:26:30.660113+00 |
| updated_at | 2025-04-27 02:23:50.989474+00 |
| description | Red Alert 2 MIX file format library for reading and writing MIX archives |
| homepage | https://github.com/rust-alert/ra2-remixer/tree/dev/projects/ra2-mix |
| repository | https://github.com/rust-alert/ra2-remixer |
| max_upload_size | |
| id | 1648549 |
| size | 48,788 |
A Rust library for reading and writing Red Alert 2 MIX archive files. Supports both encrypted and unencrypted MIX formats.
Add this to your Cargo.toml:
[dependencies]
ra2-mix = "0.0.0"
use ra2_mix::{MixPackage,MixError};
use std::path::Path;
fn main() -> Result<(), MixError> {
// Load a MIX file
let mix = MixPackage::load(Path::new("example.mix"))?;
// Access files in the MIX archive
for (filename, data) in mix.files.iter() {
println!("Found file: {}", filename);
}
Ok(())
}
See the full API documentation for detailed usage.
Check the examples/ directory for complete usage examples:
basic.rs - Basic MIX file operationsencrypted.rs - Working with encrypted MIX filesextract.rs - Extracting files from MIX archives