Skip to main content

standard_commit/
lib.rs

1//! Conventional commit parsing, validation, and formatting.
2//!
3//! `standard-commit` implements the
4//! [Conventional Commits](https://www.conventionalcommits.org/) specification
5//! as a pure library — no I/O, no git operations, no terminal output.
6//!
7//! - **Parsing** — extract type, scope, description, body, footers, and breaking status
8//! - **Linting** — validate messages against configurable rules
9//! - **Formatting** — render a [`ConventionalCommit`] back to a well-formed message string
10
11mod format;
12mod lint;
13mod parse;
14
15pub use format::format;
16pub use lint::{LintConfig, LintError, lint};
17pub use parse::{ConventionalCommit, Footer, ParseError, parse};