-
-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathCargo.toml
More file actions
44 lines (41 loc) · 1.11 KB
/
Cargo.toml
File metadata and controls
44 lines (41 loc) · 1.11 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
[package]
name = "common"
description = "common utilities for lumen"
version = "0.2.0"
authors = ["Naim A. <[email protected]>"]
edition = "2021"
publish = false
[dependencies]
tokio = { version = "1.39", features = ["full"], optional = true }
log = { version = "0.4", features = ["release_max_level_debug"] }
serde = { version = "1.0", features = ["derive"] }
postgres-native-tls = { version = "0.5", optional = true }
native-tls = { version = "0.2", optional = true }
futures-util = "0.3"
toml = "0.8"
warp = { version = "0.3", optional = true }
binascii = "0.1"
tokio-postgres = { version = "0.7", default-features = false, optional = true }
diesel = { version = "2.2", optional = true, default-features = false, features = [
"postgres_backend",
"time",
] }
time = { version = "0.3.36", optional = true }
diesel-async = { version = "0.5", optional = true, features = [
"postgres",
"bb8",
] }
anyhow = "1.0"
prometheus-client = "0.22"
[features]
default = ["web", "db"]
web = ["warp"]
db = [
"tokio",
"postgres-native-tls",
"native-tls",
"diesel",
"diesel-async",
"tokio-postgres",
"time",
]