mupen64_movie_parser/lib.rs
1//! A crate for parsing Mupen64-rerecording `.m64` files.
2//!
3//! # Example
4//!
5//! ```
6//! use mupen64_movie_parser::M64;
7//!
8//! let m64 = include_bytes!("./tests/m64s/120 star tas (2012).m64");
9//! let m64 = M64::from_u8_array(m64).unwrap();
10//! assert_eq!(m64.author.as_str().trim_matches(char::from(0)),
11//! "MKDasher, Nahoc, sonicpacker, Bauru, Eru, Goronem, Jesus, Kyman, Mokkori, Moltov, Nothing693, pasta, SilentSlayers, Snark, and ToT");
12//! assert_eq!(m64.description.as_str().trim_matches(char::from(0)),
13//! "18:08.33 saved over Rikku.");
14//! assert_eq!(m64.rerecords, 2136942);
15//! assert_eq!(m64.vi_frames, 290491);
16//! ```
17pub mod controller;
18pub mod error;
19pub mod m64;
20mod parser;
21#[cfg(test)]
22mod tests;
23
24pub use m64::M64;
25pub use controller::Input;