1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! This is a simple way to decrypt the ncm file.
//!
//! # Install
//!
//! You can add this to your `Cargo.toml`:
//!
//! ```toml
//! ncmdump = "0.7.3"
//! ```
//!
//! Also, you can use this command to install this crate,
//! if you installed [cargo-edit](https://github.com/killercup/cargo-edit)
//!
//! ```shell
//! cargo add ncmdump
//! ```
//!
//! # Usage
//!
//! ```rust
//! use std::fs::File;
//! use std::io::{Error, Write};
//! use std::path::Path;
//!
//! use ncmdump::Ncmdump;
//!
//! fn main() -> Result<(), Error> {
//! let file = File::open("res/test.ncm")?;
//! let mut ncm = Ncmdump::from_reader(file).expect("Can't create dump");
//! let music = ncm.get_data().expect("Can't get data");
//! let mut target = File::options()
//! .create(true)
//! .write(true)
//! .open("res/test.flac")?;
//! target.write_all(&music)?;
//! Ok(())
//! }
//! ```
//!
pub use crateNcmInfo;
pub use crateNcmdump;
pub use crateQmcDump;