1#![cfg_attr(feature = "document-features", doc = document_features::document_features!())]
8#![cfg_attr(docsrs, feature(doc_cfg))]
9#![warn(missing_docs, clippy::unwrap_used)]
10#![doc(
11 html_logo_url = "https://raw.githubusercontent.com/orhun/git-cliff/main/website/static/img/git-cliff.png",
12 html_favicon_url = "https://raw.githubusercontent.com/orhun/git-cliff/main/website/static/favicon/favicon.ico"
13)]
14
15pub mod changelog;
17pub mod command;
19pub mod commit;
21pub mod config;
23pub mod contributor;
25pub mod embed;
27pub mod error;
29pub mod process;
31pub mod release;
33#[cfg(feature = "remote")]
35#[allow(async_fn_in_trait)]
36pub mod remote;
37#[cfg(feature = "repo")]
39pub mod repo;
40pub mod statistics;
42pub mod summary;
44pub mod tag;
46pub mod template;
48
49pub const DEFAULT_CONFIG: &str = "cliff.toml";
54pub const CONFIG_FILES: &[&str] = &["cliff.toml", ".cliff.toml", ".config/cliff.toml"];
59pub const DEFAULT_OUTPUT: &str = "CHANGELOG.md";
61pub const IGNORE_FILE: &str = ".cliffignore";
63
64#[doc(hidden)]
67#[macro_export]
68macro_rules! set_progress_message {
69 ($($arg:tt)*) => {{
70 #[cfg(feature = "tracing-indicatif")]
71 {
72 use tracing::Span;
73 use tracing_indicatif::span_ext::IndicatifSpanExt;
74 let msg = format!($($arg)*);
75 Span::current().pb_set_message(&msg);
76 }
77 }};
78}