1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Copyright 2023, 2024, 2026 Nelson Penn
*
* This file is part of Yet Another Commit Transformer.
*
* Yet Another Commit Transformer is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the License,
* or (at your option) any later version.
*
* Yet Another Commit Transformer is distributed in the hope that it will be
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* Yet Another Commit Transformer. If not, see <https://www.gnu.org/licenses/>.
*/
//! `yact` is a program that applies code formatters seamlessly to git commits
//! when installed as a pre-commit hook. This is the backing library for the
//! binary sharing the same name.
//!
//! - [pre_commit] contains the implementation of the core algorithm of the
//! project.
//! - [Configuration] is the configuration struct which is conventionally stored
//! as `yactrc.toml`.
//! - [BuiltinTransformer] is an enum containing the builtin transformers that
//! can be used in the [Configuration].
//! - [ShellCommandTransformer] is an enum containing the external transformers
//! that can be used in the [Configuration]. This serves as a helpful
//! reference of all the available options.
pub use pre_commit;
pub use BuiltinTransformer;
pub use ;
pub use Error;
pub use ;
pub use ;