-
Notifications
You must be signed in to change notification settings - Fork 193
Expand file tree
/
Copy pathCargo.toml
More file actions
133 lines (120 loc) · 4.16 KB
/
Cargo.toml
File metadata and controls
133 lines (120 loc) · 4.16 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
[package]
name = "blockscout-service-launcher"
version = "0.22.0"
description = "Allows to launch blazingly fast blockscout rust services"
license = "LicenseRef-Blockscout"
repository = "https://github.com/blockscout/blockscout-rs"
keywords = ["blockscout", "service", "starter", "launcher", "microservices"]
categories = ["web-programming::http-server"]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
actix-web = { version = "4", optional = true }
actix-cors = { version = "0.7", optional = true }
actix-web-prom = { version = "0.10", optional = true }
anyhow = { version = "1.0", optional = true }
config = { version = "0.15", optional = true }
futures = { version = "0.3", optional = true }
cfg-if = { version = "1.0.0", optional = true }
keccak-hash = { version = "0.12.0", optional = true }
once_cell = { version = "1", optional = true }
opentelemetry = { version = "0.19", optional = true }
opentelemetry-jaeger = { version = "0.18", features = ["rt-tokio"], optional = true }
prometheus = { version = "0.14", optional = true }
reqwest = { version = "0.12", features = ["json"], optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1", optional = true }
serde_with = { version = "3", optional = true }
tokio = { version = "1.44", optional = true }
tokio-util = { version = "0.7.13", features = ["rt"], optional = true }
tonic = { version = "0.14", optional = true }
tracing = { version = "0.1", optional = true }
tracing-actix-web = { package = "blockscout-tracing-actix-web", version = "0.8.0", optional = true }
tracing-opentelemetry = { version = "0.19", optional = true }
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"], optional = true }
url = { version = "2.3.1", optional = true }
uuid = { version = "1", features = ["v4"], optional = true }
# Dependencies required for database initialization
sea-orm-0_10 = { package = "sea-orm", version = "0.10", optional = true }
sea-orm-migration-0_10 = { package = "sea-orm-migration", version = "0.10", optional = true }
sea-orm-0_11 = { package = "sea-orm", version = "0.11", optional = true }
sea-orm-migration-0_11 = { package = "sea-orm-migration", version = "0.11", optional = true }
# 1.1.8 and older sea-orm do not compile against sqlx 0.8.6 (TransactionManager::begin signature).
sea-orm-1 = { package = "sea-orm", version = "1.1.14", optional = true, features = [
"sqlx-postgres",
"runtime-tokio-rustls",
] }
sea-orm-migration-1 = { package = "sea-orm-migration", version = "1.1.14", optional = true, features = [
"sqlx-postgres",
"runtime-tokio-rustls",
] }
[dev-dependencies]
pretty_assertions = "1.4.0"
tempfile = "3.10.1"
regex = { version = "1", features = ["std"], default-features = false }
[features]
default = ["launcher", "tracing", "actix-request-id"]
launcher = [
"dep:actix-web",
"dep:actix-web-prom",
"dep:actix-cors",
"dep:anyhow",
"dep:config",
"dep:futures",
"dep:once_cell",
"dep:prometheus",
"dep:serde",
"dep:tokio",
"dep:tokio-util",
"dep:tonic",
"dep:tracing",
"dep:tracing-actix-web",
]
tracing = [
"dep:anyhow",
"dep:opentelemetry",
"dep:opentelemetry-jaeger",
"dep:serde",
"dep:serde_json",
"dep:tracing",
"dep:tracing-opentelemetry",
"dep:tracing-subscriber",
"dep:uuid",
]
# Cannot be used without corresponding sea-orm dependency.
# Choose any of `database-1`, `database-0_11`, `database-0_10` for the actual usage.
database = [
"dep:anyhow",
"dep:cfg-if",
"dep:serde",
"dep:serde_with",
"dep:tracing",
"dep:url",
]
database-1 = [
"database",
"dep:sea-orm-1",
"dep:sea-orm-migration-1",
]
# 0_12 introduces conflicts with native sqlite library
# and thus not supported
# see https://github.com/launchbadge/sqlx/issues/3556
database-0_11 = [
"database",
"dep:sea-orm-0_11",
"dep:sea-orm-migration-0_11",
]
database-0_10 = [
"database",
"dep:sea-orm-0_10",
"dep:sea-orm-migration-0_10",
]
actix-request-id = []
test-server = [
"launcher",
"dep:reqwest",
]
test-database = [
"database",
"dep:keccak-hash",
]