1#![warn(clippy::nursery)]
39#![deny(
40 unused,
41 nonstandard_style,
42 future_incompatible,
43 missing_copy_implementations,
44 missing_debug_implementations,
45 missing_docs,
46 clippy::pedantic,
47 clippy::cargo,
48 clippy::complexity,
49 clippy::correctness,
50 clippy::pedantic,
51 clippy::perf,
52 clippy::style,
53 clippy::suspicious,
54 non_fmt_panics
55)]
56#![allow(clippy::multiple_crate_versions)]
57
58#[cfg(test)]
59#[macro_use(quickcheck)]
60extern crate quickcheck_macros;
61
62pub use bodies::Bodies;
63pub use body::Body;
64pub use comment::Comment;
65pub use comments::Comments;
66pub use commit_message::{CommitMessage, Error as CommitMessageError};
67pub use fragment::Fragment;
68pub use scissors::Scissors;
69pub use subject::Subject;
70pub use trailer::{Error as TrailerError, Trailer};
71pub use trailers::Trailers;
72
73mod bodies;
74#[cfg(test)]
75mod bodies_test;
76mod body;
77#[cfg(test)]
78mod body_test;
79mod comment;
80#[cfg(test)]
81mod comment_test;
82mod comments;
83#[cfg(test)]
84mod comments_test;
85mod commit_message;
86#[cfg(test)]
87mod commit_message_test;
88mod fragment;
89#[cfg(test)]
90mod fragment_test;
91mod scissors;
92#[cfg(test)]
93mod scissors_test;
94mod subject;
95#[cfg(test)]
96mod subject_test;
97mod trailer;
98#[cfg(test)]
99mod trailer_test;
100mod trailers;
101#[cfg(test)]
102mod trailers_test;
103
104#[cfg(doctest)]
105mod test_readme {
106 macro_rules! external_doc_test {
107 ($x:expr) => {
108 #[doc = $x]
109 unsafe extern "C" {}
110 };
111 }
112
113 external_doc_test!(include_str!("../README.md"));
114}