-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
57 lines (50 loc) · 1.24 KB
/
Cargo.toml
File metadata and controls
57 lines (50 loc) · 1.24 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
[package]
name = "cargo-course"
version = "0.1.0"
edition = "2024"
[[bin]]
name = "cargo-course"
path = "src/bin/cli.rs"
[[bin]]
name = "server"
path = "src/bin/server.rs"
[package.metadata.exercises.12_question_mark_operator]
difficulty = "beginner"
tags = ["question-mark", "result", "error-handling"]
[dependencies]
# Shared dependencies
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
anyhow = "1.0"
ulid = "1.0"
tokio = { version = "1.0", features = ["full"] }
# CLI dependencies
clap = { version = "4.0", features = ["derive"] }
reqwest = { version = "0.11", features = ["json"] }
# Server dependencies
axum = { version = "0.8.4", features = ["macros"] }
tower = "0.4"
tower-http = { version = "0.5", features = ["fs", "cors"] }
sqlx = { version = "0.8", features = [
"runtime-tokio-rustls",
"sqlite",
"chrono",
"uuid",
"migrate",
] }
askama = { version = "0.13" }
dotenvy = "0.15"
chrono = { version = "0.4", features = ["serde"] }
open = "5.3.2"
env_logger = "0.11"
log = "0.4"
sha2 = "0.10"
[lints.clippy]
all = "warn"
pedantic = "warn"
nursery = "warn"
cargo = "warn"
# Allow some pedantic lints that are too noisy
module_name_repetitions = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"