-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCargo.toml
157 lines (134 loc) · 4.23 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
resolver = "2"
members = [".", "crates/*"]
[workspace.package]
version = "0.22.0"
license = "GPL-3.0"
edition = "2021"
[workspace.dependencies]
itertools = "0.13.0"
once_cell = "1.20.1"
regex = { version = "1.11.0", default-features = false, features = [
"std",
"perf",
"unicode-case",
"unicode-perl",
] }
# https://github.com/crate-ci/cargo-release/blob/master/docs/reference.md#configuration
[workspace.metadata.release]
allow-branch = ["master"]
pre-release-commit-message = "dist: cut a new release"
# https://github.com/crate-ci/cargo-release/issues/333
tag = false
[workspace.lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
trivial_numeric_casts = "warn"
unsafe_code = "forbid"
unused_allocation = "warn"
[workspace.lints.clippy]
dbg_macro = "warn"
nursery = "warn"
pedantic = "warn"
todo = "warn"
[workspace.lints.rustdoc]
broken_intra_doc_links = "warn"
[package]
name = "pacaptr"
version.workspace = true
license.workspace = true
edition.workspace = true
homepage = "https://github.com/rami3l/pacaptr"
repository = "https://github.com/rami3l/pacaptr"
description = "Pacman-like syntax wrapper for many package managers."
readme = "README.md"
keywords = ["package-management"]
categories = ["command-line-utilities"]
include = ["LICENSE", "Cargo.toml", "src/**/*.rs", "build.rs"]
[package.metadata.docs.rs]
all-features = true
[package.metadata.release]
# https://github.com/crate-ci/cargo-release/issues/333
tag = true
tag-message = ""
[package.metadata.binstall]
bin-dir = "{ bin }{ binary-ext }"
[package.metadata.binstall.overrides]
x86_64-apple-darwin.pkg-url = "{ repo }/releases/download/v{ version }/{ name }-darwin-universal2{ archive-suffix }"
aarch64-apple-darwin.pkg-url = "{ repo }/releases/download/v{ version }/{ name }-darwin-universal2{ archive-suffix }"
x86_64-pc-windows-msvc = { pkg-url = "{ repo }/releases/download/v{ version }/{ name }-windows-amd64{ archive-suffix }", pkg-fmt = "zip" }
aarch64-pc-windows-msvc = { pkg-url = "{ repo }/releases/download/v{ version }/{ name }-windows-arm64{ archive-suffix }", pkg-fmt = "zip" }
x86_64-unknown-linux-musl.pkg-url = "{ repo }/releases/download/v{ version }/{ name }-linux-amd64{ archive-suffix }"
aarch64-unknown-linux-musl.pkg-url = "{ repo }/releases/download/v{ version }/{ name }-linux-arm64{ archive-suffix }"
[package.metadata.deb]
copyright = "2020, Rami3L"
maintainer = "Rami3L <[email protected]>"
# license-file = ["LICENSE", "4"]
assets = [
[
"target/release/pacaptr",
"usr/bin/",
"755",
],
[
"README.md",
"usr/share/doc/pacaptr/README",
"644",
],
]
depends = "$auto"
extended-description = "Pacman-like syntax wrapper for many package managers."
priority = "optional"
section = "utility"
[build-dependencies]
built = { version = "0.7.4", features = ["git2"] }
[dev-dependencies]
xshell = "0.2.6"
[dependencies]
async-trait = "0.1.81"
bytes = "1.7.2"
clap = { version = "4.5.16", features = ["cargo", "derive"] }
console = "0.15.10"
ctrlc = { version = "3.4.5", features = ["termination"] }
dialoguer = { version = "0.11.0", features = ["fuzzy-select"] }
dirs-next = "2.0.0"
figment = { version = "0.10.19", features = ["env", "toml"] }
futures = { version = "0.3.30", default-features = false, features = ["std"] }
indoc = "2.0.5"
itertools = { workspace = true }
macro_rules_attribute = "0.2.0"
pacaptr-macros = { path = "crates/pacaptr-macros", version = "0.22.0" }
paste = "1.0.15"
regex = { workspace = true }
serde = { version = "1.0.217", features = ["derive"] }
tap = "1.0.1"
thiserror = "2.0.9"
thiserror-ext = "0.2.0"
tokio = { version = "1.40.0", features = [
"io-std",
"io-util",
"macros",
"process",
"rt-multi-thread",
"sync",
] }
tokio-stream = "0.1.15"
tokio-util = { version = "0.7.11", features = ["codec", "compat"] }
tt-call = "1.0.9"
which = "7.0.1"
[target.'cfg(windows)'.dependencies]
is_elevated = "0.1.2"
[target.'cfg(unix)'.dependencies]
nix = { version = "0.29.0", default-features = false, features = ["user"] }
[features]
test = ["pacaptr-macros/test"]
[profile.release]
codegen-units = 1
debug = 0
lto = true
opt-level = "z"
panic = "abort"
strip = "symbols"
[lints]
workspace = true