rustoku_lib/lib.rs
1//! A Sudoku library implemented in Rust with efficient bitmasking for constraint tracking.
2//!
3//! This library provides a `Rustoku` struct that can solve and check 9x9 Sudoku puzzles.
4//! The implementation uses bitmasks to efficiently track constraints for
5//! rows, columns, and 3x3 boxes, enabling fast validation and candidate computation
6//! during the solving process.
7//!
8//! The library also provides a `generate_board` utility to generate puzzles. The
9//! output includes the matrix-like representation of the board as well as the
10//! one-line representation for easy copying and pasting.
11
12pub mod bind;
13pub mod core;
14mod error;
15mod format;
16
17pub use core::{
18 BoardGenerator, Difficulty, Rustoku, RustokuBuilder, Solutions, Symmetry, generate_board,
19 generate_board_by_difficulty,
20};
21pub use error::RustokuError;
22pub use format::format_line;