-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
185 lines (149 loc) · 5.01 KB
/
Copy pathCargo.toml
File metadata and controls
185 lines (149 loc) · 5.01 KB
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
[package]
name = "hp"
version.workspace = true
edition.workspace = true
publish = { workspace = true }
authors = { workspace = true }
description = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
readme = { workspace = true }
homepage = { workspace = true }
rust-version = { workspace = true }
keywords = { workspace = true }
categories = { workspace = true }
[features]
default = [] # 默认所有feature禁用
[dependencies]
# 当依赖被标记为 "可选 optional" 时,意味着它默认不会被编译
serde = { version = "1.0.228" }
log = { workspace = true }
clap = { version = "4.5.51", features = ["derive", "cargo", "color"] }
crossterm = { workspace = true }
clap-verbosity-flag = { workspace = true }
anyhow = { workspace = true }
env_logger = "0.11.8"
serde_json = { workspace = true }
command_util_lib = { workspace = true }
regex = "1.12.2"
rayon = "1.11.0"
color-eyre = "0.6.5"
reqwest = { workspace = true }
tokio = { workspace = true }
url = { workspace = true }
sha2 = { workspace = true }
rand = { workspace = true }
sha1 = { workspace = true }
line-ending = { workspace = true }
console = "0.15.11"
comfy-table = { workspace = true }
indicatif = { workspace = true }
windows = { version = "0.56.0", features = ["Win32_Foundation",
"Win32_System_Services", "Win32_System_SystemServices", "Win32_System_Registry",
"Win32_Security", "Win32_Storage_FileSystem", "Win32_System_SecurityCenter", "Wdk",
"Win32_System_Diagnostics", "Win32_System_SystemInformation",
"Wdk_System", "Win32_System_Diagnostics_Debug", "Wdk_System_SystemServices",
"Win32_Globalization", "Win32"] }
winreg = "0.55.0"
thiserror = "1.0.69"
which = { workspace = true }
qrcode = "0.14.1"
hex = { workspace = true }
once_cell = "1.21.3"
rust-i18n = "3.1.5"
[workspace.dependencies]
command_util_lib = { path = "./crates/command" }
human-panic = "2.0.4"
reqwest = "0.12.24"
indicatif = "0.17.11"
serde = { version = "1.0.228", features = ["derive"] }
log = "0.4.28"
clap = { version = "4.5.51", features = ["derive"] }
crossterm = "0.28.1"
clap-verbosity-flag = "2.2.3"
anyhow = "1.0.100"
serde_json = "1.0.145"
tokio = { version = "1.48.0", features = ["full", "macros"] }
dashmap = "6.1.0"
quote = "1.0.42"
syn = "2.0.109"
color-eyre = "0.6.5"
bat = { version = "0.25.0", features = ["regex-onig", "regex-fancy"], default-features = false }
git2 = "0.20.2"
flate2 = "1.1.5"
url = "2.5.7"
sha2 = { version = "0.10.9" }
rand = "0.8.5"
sha1 = "0.10.6"
line-ending = "1.5.1"
comfy-table = "7.2.1"
which = "7.0.3"
hex = "0.4.3"
[[bin]]
name = "hp"
path = "src/main.rs"
[workspace]
members = ["crates/command", ".", "crates/hscoop_macro", "crates/shim", "crates/hash"] # 显式把src根目录也一并添加到工作区
resolver = "2"
[workspace.package]
version = "4.2.0"
edition = "2024"
publish = true
authors = ["superwindcloud<<1178933440@qq.com>"]
description = "一个更快更强更精美的Windows包管理器 "
license = "MIT OR Apache-2.0"
repository = "https://github.com/super1windcloud/hyperscoop"
readme = "README.md"
homepage = "https://github.com/super1windcloud"
rust-version = "1.91.0"
categories = ["command-line-utilities", "development-tools", "command-line-interface"]
keywords = ["scoop", "windows", "package-manager", "rust", "powerful-tool"]
exclude = ["target", "hyperscoop_source_bucket", "script", "node_modules"]
include = ["src/**/*", "Cargo.toml", "build.rs", "Cargo.lock"]
[workspace.lints.rust]
unsafe_code = "warn"
unreachable_pub = "warn"
[dev-dependencies] # 依赖项仅在开发和测试过程中使用,
# 例如 `cargo test` 或 `cargo bench` , 'cargo build --tests` ,`cargo build --examples` |
criterion = { version = "0.5.1" }
[profile.dev]
debug = 0
#最快编译时间
[profile.release]
lto = false
codegen-units = 256
panic = "abort"
debug = 0
[target.x86_64-pc-windows-msvc.dependencies] # 依赖项仅在 Windows 平台上使用。
criterion = "0.5.1"
[target.macos.dependencies]
core-foundation = "0.10.1"
[target.windows.dependencies]
windows = "0.60.0"
[target.linux.dependencies]
nix = "0.29.0"
[package.metadata.release]
version-increment = "patch" # 版本号递增方式为 patch
changelog-path = "CHANGELOG.md" # 发布 Changelog 文件路径
tag-template = "v{version}" # 发布 tag 名称模板
push = false # 是否推送到远程仓库
check-readme = true # 是否检查 README 文件
check-license = true # 是否检查 LICENSE 文件
check-cargo-toml = true # 是否检查 Cargo.toml 文件
check-manifest = true # 是否检查 Cargo.toml 文件
check-all = true # 是否检查所有文件
[package.metadata.release.github]
repository = "superwindcloud/hyperscoop"
username = "superwindcloud"
labels = ["release"]
[package.metadata.docs.rs]
features = ["default"]
default-target = "x86_64-pc-windows-msvc"
[lints.rust]
unexpected_cfgs = { level = "allow" }
[[bench]]
name = "hash"
path = "benches/hash_benchmark.rs"
harness = false # 必须设置为 false 才能使用 criterion 进行基准测试
[build-dependencies]
windows = { version = "0.62.2" ,features = ["Win32_Globalization"] }