-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
55 lines (41 loc) · 1.32 KB
/
Cargo.toml
File metadata and controls
55 lines (41 loc) · 1.32 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
[package]
name = "lib-analytics-core"
version = "0.1.0"
edition = "2021"
license = "BSL-1.0"
[[bin]]
name = "analytics-migrate"
path = "src/bin/migrate.rs"
required-features = ["migrate"]
[dependencies]
# Async runtime
tokio = { version = "1.49", features = ["full"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# HTTP client (use rustls for musl cross-compilation)
reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false }
# Time
chrono = { version = "0.4", features = ["serde"] }
# UUID
uuid = { version = "1.19", features = ["serde", "v4"] }
# Environment
lib-env-parse = { path = "../lib-env-parse" }
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"], optional = true }
# Error handling
thiserror = "2.0"
anyhow = "1.0"
# Database
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono", "json"] }
# Migrations (for binary only)
lib-migrations-core = { version = "0.1", optional = true }
lib-migrations-sql = { version = "0.1", optional = true }
# Environment (for binary only)
dotenvy = { version = "0.15", optional = true }
[features]
default = []
migrate = ["lib-migrations-core", "lib-migrations-sql", "dotenvy", "tracing-subscriber"]
[dev-dependencies]
tokio-test = "0.4"