-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
273 lines (252 loc) · 7.07 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
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
[workspace]
members = [
"crates/cli",
"crates/core",
"crates/server",
"crates/time",
]
[workspace.package]
authors = ["the pace-rs team"]
categories = ["command-line-utilities"]
edition = "2021"
homepage = "https://pace.cli.rs"
keywords = ["cli"]
license = "AGPL-3.0-or-later"
repository = "https://github.com/pace-rs/pace"
rust-version = "1.74.1"
[workspace.dependencies]
abscissa_core = "0.7.0"
assert_cmd = "2.0.14"
chrono = "0.4.35"
chrono-tz = "0.8.6"
clap = "4"
clap_complete = "4.5.1"
clap_complete_nushell = "4.5.1"
derive_more = { version = "0.99.17", default-features = false }
dialoguer = "0.11.0"
diesel = "2.1.5"
directories = "5.0.1"
displaydoc = "0.2.4"
enum_dispatch = "0.3.12"
eyre = "0.6.12"
getset = "0.1.2"
human-panic = "1.2.3"
humantime = "2.1.0"
insta = "1.36.1"
insta-cmd = "0.5.0"
itertools = "0.12.1"
libsqlite3-sys = "0.27"
merge = "0.1.0"
miette = "7.2.0"
once_cell = "1.19.0"
open = "5.1.2"
pace_cli = { path = "crates/cli", version = "0" }
pace_core = { path = "crates/core", version = "0" }
pace_time = { path = "crates/time", version = "0" }
parking_lot = "0.12.1"
predicates = "3.1.0"
rayon = "1.10.0"
rstest = "0.18.2"
serde = "1.0.197"
serde_derive = "1.0.197"
serde_json = "1.0.114"
similar-asserts = "1.5.0"
simplelog = "0.12.2"
strum = "0.26.2"
strum_macros = "0.26.2"
tabled = "0.15.0"
tempfile = "3.10.1"
tera = "1.19.1"
thiserror = "1.0.58"
toml = "0.8.12"
tracing = "0.1.40"
typed-builder = "0.18.1"
ulid = "1.1.2"
wildmatch = "2.3.3"
[package]
name = "pace-rs"
version = "0.15.2"
authors = { workspace = true }
categories = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
keywords = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
rust-version = { workspace = true }
description = "pace - Mindful Time Tracking: Simplify Your Focus and Boost Productivity Effortlessly."
include = [
"LICENSE",
"README.md",
"CHANGELOG.md",
"src/**/*",
"Cargo.toml",
]
[package.metadata.wix]
upgrade-guid = "4D6D5C4F-3994-423F-9D4C-2F92C580F54B"
path-guid = "441ECBBB-93E2-4DC2-9D74-F4B116EDFABE"
license = false
eula = false
[dependencies]
abscissa_core = { workspace = true }
chrono = { workspace = true, features = ["serde"] }
clap = { workspace = true, features = ["env", "wrap_help", "derive"] }
clap_complete = { workspace = true }
clap_complete_nushell = { workspace = true }
dialoguer = { workspace = true, features = ["history", "fuzzy-select"] }
diesel = { workspace = true, features = ["sqlite"] }
directories = { workspace = true }
eyre = { workspace = true }
human-panic = { workspace = true }
pace_cli = { workspace = true }
pace_core = { workspace = true, features = ["cli"] }
pace_time = { workspace = true, features = ["cli"] }
serde = { workspace = true }
serde_derive = { workspace = true }
thiserror = { workspace = true }
toml = { workspace = true, features = ["preserve_order"] }
# optional: use `gimli` to capture backtraces
# see https://github.com/rust-lang/backtrace-rs/issues/189
# features = ["gimli-backtrace"]
# Better error messages for Serde
# serde_path_to_error = "0.1.15"
[dev-dependencies]
abscissa_core = { workspace = true, features = ["testing"] }
assert_cmd = { workspace = true }
insta = { workspace = true, features = ["toml"] }
insta-cmd = { workspace = true }
once_cell = { workspace = true }
predicates = { workspace = true }
similar-asserts = { workspace = true }
tempfile = { workspace = true }
# The profile that 'cargo dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"
# Config for 'cargo dist'
[workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.12.0"
# CI backends to support
ci = ["github"]
# The installers to generate for each app
installers = ["shell", "powershell", "homebrew", "msi"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"x86_64-pc-windows-msvc",
]
# Publish jobs to run in CI
pr-run-mode = "plan"
# A GitHub repo to push Homebrew formulas to
tap = "pace-rs/homebrew-tap"
# Publish jobs to run in CI
publish-jobs = ["homebrew"]
# Whether to install an updater program
install-updater = true
# Include files in the dist package
include = [
"./config/",
"./docs/",
"./templates/",
]
# see: https://nnethercote.github.io/perf-book/build-configuration.html
[profile.dev]
opt-level = 0
debug = 0 # try for faster builds, usually 'true'
strip = "debuginfo" # try for faster builds
rpath = false
lto = false
debug-assertions = true
codegen-units = 4
# compile dependencies with optimizations in dev mode
# see: https://doc.rust-lang.org/stable/cargo/reference/profiles.html#overrides
[profile.dev.package."*"]
opt-level = 3
debug = true
[profile.release]
opt-level = 3
debug = false # true for profiling
rpath = false
lto = "fat"
debug-assertions = false
codegen-units = 1
strip = true
panic = "abort"
[profile.test]
opt-level = 1
debug = true
rpath = false
lto = false
debug-assertions = true
codegen-units = 4
[profile.bench]
opt-level = 3
debug = true # true for profiling
rpath = false
lto = true
debug-assertions = false
codegen-units = 1
# Allows quick RPM file generation, if "cargo-generate-rpm" is installed:
# cargo build --release; cargo generate-rpm
# will result in a file like target/generate-rpm/pace-rs-0.6.1-1.x86_64.rpm
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/pace", dest = "/usr/bin/pace", mode = "0755", config = false, doc = false }, # user = "root", group = "root" },
]
[workspace.lints.rust]
unsafe_code = "forbid"
# missing_docs = "warn"
rust_2018_idioms = "warn"
trivial_casts = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
bad_style = "warn"
dead_code = "allow" # TODO: "warn"
improper_ctypes = "warn"
# missing_copy_implementations = "warn"
# missing_debug_implementations = "warn"
non_shorthand_field_patterns = "warn"
no_mangle_generic_items = "warn"
overflowing_literals = "warn"
path_statements = "warn"
patterns_in_fns_without_body = "warn"
trivial_numeric_casts = "warn"
unused_results = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unconditional_recursion = "warn"
unused = "warn"
unused_allocation = "warn"
unused_comparisons = "warn"
unused_parens = "warn"
while_true = "warn"
[workspace.lints.clippy]
pedantic = "warn"
nursery = "warn"
expect_used = "warn"
unwrap_used = "warn"
enum_glob_use = "warn"
correctness = "warn"
suspicious = "warn"
complexity = "warn"
perf = "warn"
cast_lossless = "warn"
default_trait_access = "warn"
doc_markdown = "warn"
manual_string_new = "warn"
match_same_arms = "warn"
semicolon_if_nothing_returned = "warn"
trivially_copy_pass_by_ref = "warn"
module_name_repetitions = "allow"
# cargo-binstall support
# https://github.com/cargo-bins/cargo-binstall/blob/HEAD/SUPPORT.md
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/{ bin }-v{ version }/{ bin }-v{ version }-{ target }{ archive-suffix }"
bin-dir = "{ bin }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "txz"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"