mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-06 09:54:53 +01:00
21 lines
374 B
Rust
21 lines
374 B
Rust
use std::path::PathBuf;
|
|
|
|
use anyhow::Result;
|
|
use clap::Parser;
|
|
|
|
#[derive(Debug, Parser)]
|
|
struct Args {
|
|
/// Filename to dump
|
|
file: PathBuf,
|
|
}
|
|
|
|
fn main() -> Result<()> {
|
|
let args = Args::parse();
|
|
|
|
minedmap::io::region::from_file(args.file.as_path())?.foreach_chunk(
|
|
|coords, value: fastnbt::Value| {
|
|
println!("Chunk {:?}: {:#x?}", coords, value);
|
|
Ok(())
|
|
},
|
|
)
|
|
}
|