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
//! letterbomb — Generate LetterBomb payloads for Wii homebrew installation.
//!
//! This crate provides everything needed to:
//!
//! - Parse and validate Wii MAC addresses (`mac`).
//! - Lookup Nintendo‐assigned MAC prefixes (`oui`).
//! - Construct homebrew payloads with the correct region and timestamp (`generate`).
//! - Download & extract the HackMii installer bundle (`bundle`).
//! - Enumerate Wii region codes (`region`).
//!
//! # Examples
//!
//! ```no_run
//! use letterbomb::{generate, mac::WiiMAC, region::Region};
//! use letterbomb::generate::IncludeBundle;
//!
//! // Parse a Wii MAC address
//! let mac = "00:17:AB:5A:6E:F5".parse::<WiiMAC>().expect("invalid MAC address");
//! // Choose a region (U = USA, E = Europe, J = Japan, K = Korea)
//! let region = Region::U;
//! // Generate the payload for "now", without HackMii installer
//! let files = generate::make_payload_now(&mac, ®ion, IncludeBundle::ExcludeHackMii)
//! .expect("payload generation failed");
//!
//! // Write out each file (path → contents)
//! for (path, data) in files {
//! println!("Writing {} ({} bytes)", path, data.len());
//! }
//! ```
//!
//! See each module's documentation for details on usage and errors.