-
-
Notifications
You must be signed in to change notification settings - Fork 158
/
Cargo.toml
112 lines (103 loc) · 3.27 KB
/
Cargo.toml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[package]
name = "git-cliff"
version = "2.3.0" # managed by release.sh
description = "A highly customizable changelog generator ⛰️"
authors = ["git-cliff contributors <git-cliff@protonmail.com>"]
license = "MIT OR Apache-2.0"
readme = "../README.md"
homepage = "https://github.com/orhun/git-cliff"
repository = "https://github.com/orhun/git-cliff"
keywords = ["changelog", "generator", "conventional", "commit"]
categories = ["command-line-utilities"]
default-run = "git-cliff"
edition = "2021"
rust-version = "1.75.0"
[[bin]]
name = "git-cliff-completions"
path = "src/bin/completions.rs"
[[bin]]
name = "git-cliff-mangen"
path = "src/bin/mangen.rs"
[features]
# check for new versions
default = ["update-informer", "github", "gitlab", "bitbucket"]
# inform about new releases
update-informer = ["dep:update-informer"]
# enable GitHub integration
github = ["git-cliff-core/github", "dep:indicatif"]
# enable GitLab integration
gitlab = ["git-cliff-core/gitlab", "dep:indicatif"]
# enable Bitbucket integration
bitbucket = ["git-cliff-core/bitbucket", "dep:indicatif"]
[dependencies]
glob.workspace = true
regex.workspace = true
log.workspace = true
secrecy.workspace = true
lazy_static.workspace = true
dirs.workspace = true
clap = { version = "4.5.6", features = ["derive", "env", "wrap_help", "cargo"] }
clap_complete = "4.5.5"
clap_mangen = "0.2.21"
shellexpand = "3.1.0"
update-informer = { version = "1.1.0", optional = true }
indicatif = { version = "0.17.8", optional = true }
env_logger = "0.10.2"
[dependencies.git-cliff-core]
version = "2.3.0" # managed by release.sh
path = "../git-cliff-core"
[dev-dependencies]
pretty_assertions = "1.4.0"
# metadata for cargo-binstall to get the right artifacts
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-{ target }{ archive-suffix }"
bin-dir = "{ name }-{ version }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/git-cliff", dest = "/usr/bin/git-cliff", mode = "755" },
{ source = "LICENSE-MIT", dest = "/usr/share/doc/git-cliff/LICENSE-MIT", mode = "644" },
{ source = "README.md", dest = "/usr/share/doc/git-cliff/README.md", mode = "644" },
{ source = "man/git-cliff.1", dest = "/usr/share/man/man1/git-cliff.1", mode = "644", doc = true },
{ source = "completions/git-cliff.bash", dest = "/usr/share/bash-completion/completions/git-cliff", mode = "644" },
{ source = "completions/git-cliff.fish", dest = "/usr/share/fish/vendor_completions.d/git-cliff.fish", mode = "644" },
{ source = "completions/_git-cliff", dest = "/usr/share/zsh/vendor-completions/", mode = "644" },
]
[package.metadata.deb]
assets = [
[
"target/release/git-cliff",
"usr/bin/",
"755",
],
[
"../LICENSE-MIT",
"/usr/share/doc/git-cliff/LICENSE-MIT",
"644",
],
[
"../README.md",
"usr/share/doc/git-cliff/README",
"644",
],
[
"../man/git-cliff.1",
"/usr/share/man/man1/git-cliff.1",
"644",
],
[
"../completions/git-cliff.bash",
"/usr/share/bash-completion/completions/git-cliff",
"644",
],
[
"../completions/git-cliff.fish",
"/usr/share/fish/vendor_completions.d/git-cliff.fish",
"644",
],
[
"../completions/_git-cliff",
"/usr/share/zsh/vendor-completions/",
"644",
],
]