Conventional commit parsing, validation, and formatting.
Implements the Conventional Commits specification as a pure library — no I/O, no git operations, no terminal output.
Main entry points
- [
parse] — parse a commit message into a [ConventionalCommit] - [
lint] — validate a message against a [LintConfig] - [
format] — render a [ConventionalCommit] back to a well-formed string
Example
use ;
let commit = parse.unwrap;
assert_eq!;
assert_eq!;
// Round-trip: format back to string
assert_eq!;
// Lint with default rules
let errors = lint;
assert!;