Ncmdump.rs

Credit

Origin

Binary Usage

Simple usage

shell ncmdump -f [files ...]

More options

``` USAGE: ncmdump [FLAGS] [OPTIONS]

FLAGS: -h, --help Prints help information -i, --info Only show the information of files -V, --version Prints version information -v, --verbose Verbosely list files processing

OPTIONS: -f, --files ... Specified the files -o, --output Specified the output directory ```

Library Usage

Install

You can add this to your Cargo.toml:

toml ncmdump = "0.1.0"

Also, you can use this command to install this crate, if you installed cargo-edit

shell cargo add ncmdump

Simple Usage

```rust extern crate ncmdump;

use std::error::Error; use std::fs::{read, write}; use std::path::Path;

fn main() -> Result<(), Box> { let inputpath = Path::new("tests/test.ncm"); let outputpath = Path::new("tests/test.flac"); let buffer = read(&inputpath)?; let data = ncmdump::convert(&buffer)?; write(&outputpath, data)?; Ok(()) } ```