diff --git a/check-drawing/src/lib.rs b/check-drawing/src/lib.rs new file mode 100644 index 00000000..ccfe2235 --- /dev/null +++ b/check-drawing/src/lib.rs @@ -0,0 +1,14 @@ +//! check-drawing: checks a draw.io drawing of commit graphs against the +//! repositories it shows. See README.md next to src/ for the drawing's +//! vocabulary and its limits. +//! +//! What it reads about a splice, its boundary, rebuild, keys and the folders +//! it had, comes from git-splice's own code, so a drawing is checked against +//! what the tool really does. + +pub mod check; +pub mod diagram; +pub mod history; +pub mod labels; +pub mod placement; +pub mod tree; diff --git a/check-drawing/src/main.rs b/check-drawing/src/main.rs index 388788e0..c18951fe 100644 --- a/check-drawing/src/main.rs +++ b/check-drawing/src/main.rs @@ -1,19 +1,7 @@ -//! check-drawing: checks a draw.io drawing of commit graphs against the -//! repositories it shows. See README.md next to src/ for the drawing's -//! vocabulary and its limits. -//! -//! What it reads about a splice, its boundary, rebuild, keys and the folders -//! it had, comes from git-splice's own code, so a drawing is checked against -//! what the tool really does. +//! The check-drawing command: see the library, lib.rs, for what it checks. -mod check; -mod diagram; -mod history; -mod labels; -mod placement; -mod tree; - -use check::{Checker, Labels}; +use check_drawing::check::{Checker, Labels}; +use check_drawing::{labels, placement, tree}; use std::process::ExitCode; const USAGE: &str = "usage: check-drawing [--alias =...] [