nander_rs/lib.rs
1//! nander-rs library
2//!
3//! This library provides functionality for programming SPI NAND/NOR Flash chips
4//! using hardware programmers like CH341A.
5//!
6//! # Architecture
7//!
8//! The library is organized into layered architecture:
9//!
10//! - [`domain`]: Core business logic and types
11//! - [`application`]: Use cases and business rules
12//! - [`infrastructure`]: Technology-specific implementations (Programmers, Database)
13//! - [`presentation`]: User interfaces (CLI)
14//! - [`error`]: Error types and handling
15//!
16//! # Example
17//!
18//! use nander_rs::presentation::cli::args::Args;
19//! use nander_rs::presentation::cli;
20//! use clap::Parser;
21//!
22//! // Parse and execute
23//! let args = Args::parse();
24//! if let Err(e) = cli::execute(args) {
25//! eprintln!("Error: {}", e);
26//! }
27//! ```
28
29// --- New Layered Architecture ---
30pub mod application;
31pub mod domain;
32pub mod error;
33pub mod infrastructure;
34pub mod presentation;
35
36pub use error::{Error, Result};