-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
71 lines (57 loc) · 1.49 KB
/
Cargo.toml
File metadata and controls
71 lines (57 loc) · 1.49 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
[package]
name = "url-shortener"
version = "0.1.0"
edition = "2021"
authors = ["Your Name <your.email@example.com>"]
description = "A URL shortener service built with Rust"
[dependencies]
# Web framework
actix-web = "4.3.1"
actix-cors = "0.7.1"
# Serialization/Deserialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Database
sqlx = { version = "0.8.3", features = ["runtime-tokio-rustls", "postgres", "macros", "json", "chrono", "uuid", "migrate"] }
redis = { version = "0.29.2", features = ["tokio-comp", "connection-manager"] }
# Environment configu0.29.2
dotenvy = "0.15.7"
config = "0.15.11"
# Logging
env_logger = "0.11.7"
log = "0.4.27"
# Error handling
thiserror = "2.0.12"
anyhow = "1.0"
# URL handling and hashing
validator = { version = "0.20.0", features = ["derive"] }
url = "2.4.0"
base64 = "0.22.1"
sha2 = "0.10.7"
nanoid = "0.4.0"
# Async runtime
tokio = { version = "1.28.2", features = ["full"] }
futures = "0.3.28"
# Logging
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
tracing-actix-web = "0.7.4"
# Time
chrono = { version = "0.4.26", features = ["serde"] }
# Utilities
rand = "0.9.0"
uuid = { version = "1.16.0", features = ["v4", "serde"] }
async-trait = "0.1.88"
futures-util = "0.3.31"
[dev-dependencies]
# Testing
mockall = "0.13.1"
criterion = "0.5.1"
fake = { version = "4.2.0", features = ["chrono", "http"] }
[profile.dev]
opt-level = 0
debug = true
[profile.release]
opt-level = 3
lto = true
debug = false