utils/
lib.rs

1//! Common utilities used by the [`aoc`](../aoc/) and year crates.
2#![cfg_attr(not(feature = "unsafe"), forbid(unsafe_code))]
3
4pub mod array;
5pub mod bit;
6pub mod date;
7mod framework;
8pub mod geometry;
9pub mod graph;
10pub mod grid;
11pub mod input;
12pub mod md5;
13#[cfg(not(target_family = "wasm"))]
14pub mod multithreading;
15pub mod multiversion;
16pub mod number;
17pub mod parser;
18pub mod simd;
19#[cfg(target_family = "wasm")]
20pub mod wasm;
21
22pub use framework::{Puzzle, PuzzleExamples};
23#[cfg(target_family = "wasm")]
24pub use wasm::multithreading;
25
26/// Standard imports for puzzle solutions.
27pub mod prelude {
28    pub use crate::examples;
29    pub use crate::input::{InputError, InputType, MapWithInputExt as _};
30    pub use crate::parser::{self, Parseable as _, Parser as _};
31}