-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathCargo.toml
More file actions
241 lines (227 loc) · 6.04 KB
/
Cargo.toml
File metadata and controls
241 lines (227 loc) · 6.04 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
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
[workspace]
members = ["task-maker-*"]
[package]
name = "task-maker-rust"
version = "0.6.22"
description = "Tool for building tasks for informatics competitions, with support for cache, distributed computations and more"
readme = "README.md"
authors = ["Edoardo Morassutto <edoardo.morassutto@gmail.com>"]
edition = "2021"
documentation = "https://olimpiadi-informatica.github.io/task-maker-rust/"
repository = "https://github.com/olimpiadi-informatica/task-maker-rust"
license = "MPL-2.0"
default-run = "task-maker"
[package.metadata.deb]
extended-description = "Tool for building tasks for informatics competitions, with support for cache, distributed computations and more"
assets = [
# main executables
[
"target/release/task-maker",
"usr/bin/task-maker-rust",
"755",
],
[
"target/release/task-maker-tools",
"usr/bin/task-maker-tools",
"755",
],
# autocompletion files
[
"target/autocompletion/task-maker-rust.bash",
"etc/bash_completion.d/task-maker-rust",
"644",
],
[
"target/autocompletion/_task-maker-rust",
"usr/share/zsh/vendor-completions/_task-maker-rust",
"644",
],
[
"target/autocompletion/task-maker-rust.fish",
"usr/share/fish/completions/task-maker-rust.fish",
"644",
],
[
"target/autocompletion/task-maker-tools.bash",
"etc/bash_completion.d/task-maker-tools",
"644",
],
[
"target/autocompletion/_task-maker-tools",
"usr/share/zsh/vendor-completions/_task-maker-tools",
"644",
],
[
"target/autocompletion/task-maker-tools.fish",
"usr/share/fish/completions/task-maker-tools.fish",
"644",
],
# runtime required data
[
"data/**/*",
"usr/share/task-maker-rust/",
"755",
],
# vim syntax highlight
[
"tools/vim/ftdetect/cases_gen.vim",
"usr/share/vim/vimfiles/ftdetect/cases_gen.vim",
"644",
],
[
"tools/vim/syntax/cases_gen.vim",
"usr/share/vim/vimfiles/syntax/cases_gen.vim",
"644",
],
# AppArmor profile for allowing user namespaces on Ubuntu 23.10+.
[
"tools/ubuntu/apparmor-task-maker-rust",
"etc/apparmor.d/task-maker-rust",
"644",
],
]
[badges]
github = { repository = "olimpiadi-informatica/task-maker-rust", workflow = "Rust" }
[workspace.dependencies]
anyhow = "1.0"
approx = "0.5"
askama = "0.15"
askama_derive = "0.15"
axum = "0.8.8"
better-panic = "0.3"
bincode = "1.3.3"
blake3 = "1.8"
bytes = { version = "1.11", features = ["serde"] }
clap = "4.5"
clap_complete = "4.5"
colored = "3"
const_format = "0.2"
crossbeam-channel = "0.5.15"
ctrlc = "3.5"
derivative = "2.2"
directories = "6.0"
ductile = "0.3"
env_logger = "0.11"
fastrand = "2.3"
fslock = "0.2"
glob = "0.3"
inventory = "0.3.21"
itertools = "0.14"
lazy_static = "1.5"
log = "0.4"
mime_guess = "2.0"
nix = { version = "0.29", features = ["poll"] }
num_cpus = "1.17"
paste = "1.0.15"
pest = "2.8"
pest_derive = "2.8"
pretty_assertions = "1.4"
ratatui = { version = "0.30", default-features = false }
regex = "1"
rlimit = "0.11"
rustls = { version = "0.23", default-features = false, features = [
"ring",
"std",
"tls12",
] }
hyper-rustls = { version = "0.27", default-features = false, features = [
"ring",
"http1",
"http2",
"tls12",
] }
tokio-rustls = { version = "0.26", default-features = false, features = [
"ring",
"tls12",
] }
scopeguard = "1.2"
serde = "1.0"
serde_json = "1.0"
serde_yaml = "0.9"
shell-words = "1.1"
speculoos = "0.13"
supports-color = "3"
tabox = "1"
tempfile = "3.25"
termcolor = "1"
termion = "4"
thiserror = "2.0"
tokio = { version = "1.50.0", features = ["full"] }
tower-http = { version = "0.6.8", features = ["trace"] }
unic = "0.9"
url = "2.5"
uuid = "1.21"
walkdir = "2.5"
which = "8.0"
whoami = "1.6"
wildmatch = "2.6.1"
[dependencies]
task-maker-dag = { path = "./task-maker-dag" }
task-maker-store = { path = "./task-maker-store" }
task-maker-cache = { path = "./task-maker-cache" }
task-maker-exec = { path = "./task-maker-exec" }
task-maker-lang = { path = "./task-maker-lang" } # needed only by typescriptify
task-maker-format = { path = "./task-maker-format" }
# Crypto provider for rustls
rustls = { workspace = true }
# Logging and setting up the global logger
log = { workspace = true }
env_logger = { workspace = true }
# Argument parsing
clap = { workspace = true, features = ["derive"] }
clap_complete = { workspace = true }
num_cpus = { workspace = true }
# Better stacktraces for panics
better-panic = { workspace = true }
# Worker and client name
whoami = { workspace = true }
# Cross-platform cache directory
directories = { workspace = true }
# Generic error utilities
anyhow = { workspace = true, features = ["backtrace"] }
# Message serialization for UI/sandbox/...
serde = { workspace = true }
serde_json = { workspace = true }
# Sandbox implementation for --sandbox
tabox = { workspace = true }
# Signal handler for ^C
ctrlc = { workspace = true }
# Global constants
lazy_static = { workspace = true }
# General iterator utilities
itertools = { workspace = true }
# Iterate recursively the files in a directory (used for `task-maker-tools reset`)
walkdir = { workspace = true }
# defer! macro
scopeguard = { workspace = true }
# URL parsing for connecting to a remote server
url = { workspace = true }
# Temporary directory for sandboxes
tempfile = { workspace = true }
# Regex
regex = { workspace = true }
# setrlimit for setting unlimited stack for the checker in the fuzzer
rlimit = { workspace = true }
# Geenrating random numbers (the seed in find-bad-case tool)
fastrand = { workspace = true }
# Curses UI
ratatui = { workspace = true, features = ["termion"] }
# Terry statements
serde_yaml = { workspace = true }
zip = { version = "7.4.0", default-features = false }
typst-assets = { version = "0.14.2", features = ["fonts"] }
nix = { workspace = true }
axum = { workspace = true }
bytes = { workspace = true }
tokio = { workspace = true }
tower-http = { workspace = true }
[dev-dependencies]
approx = { workspace = true }
# Resolve executable names in $PATH
which = { workspace = true }
[[bin]]
name = "task-maker"
path = "src/main.rs"
[[bin]]
name = "task-maker-tools"
path = "src/tools/main.rs"