-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
67 lines (62 loc) · 1.92 KB
/
Cargo.toml
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
[package]
name = "loco-extras"
version = "0.4.0"
description = "Extra loco components"
edition = "2021"
rust-version = "1.70"
license = "Apache-2.0"
[lib]
path = "src/lib.rs"
[dependencies]
async-trait = { version = "0.1" }
axum = { version = "0.7" }
# initializer
axum-prometheus = { version = "0.6.1", optional = true }
serde = { version = "1", optional = true }
serde_json = { version = "1", optional = true }
tower = { version = "0.4", optional = true }
tower-http = { version = "0.6", optional = true, features = ["normalize-path"] }
opentelemetry = { version = "0.22", optional = true }
opentelemetry-otlp = { version = "0.15", optional = true, features = [
"grpc-tonic",
] }
axum-tracing-opentelemetry = { version = "0.18", optional = true }
init-tracing-opentelemetry = { version = "0.18", optional = true, features = [
"otlp",
"tracing_subscriber_ext",
] }
tracing-opentelemetry-instrumentation-sdk = { version = "0.18", optional = true }
tracing-subscriber = { version = "0.3.18", optional = true, features = [
"env-filter",
"json",
] }
tracing = { version = "0.1.40", optional = true }
mongodb = { version = "2.8.0", optional = true }
[dependencies.loco-rs]
version = "0.11.1"
default-features = true
features = ["with-db", "auth_jwt"]
[features]
default = ["full"]
full = [
"initializer-prometheus",
"initializer-extra-db",
"initializer-multi-db",
"initializer-normalize-path",
"initializer-opentelemetry",
"initializer-mongodb",
]
initializer-prometheus = ["dep:axum-prometheus"]
initializer-extra-db = []
initializer-multi-db = ["dep:serde_json"]
initializer-normalize-path = ["dep:tower", "dep:tower-http"]
initializer-opentelemetry = [
"dep:opentelemetry",
"dep:opentelemetry-otlp",
"dep:axum-tracing-opentelemetry",
"dep:init-tracing-opentelemetry",
"dep:tracing-opentelemetry-instrumentation-sdk",
"dep:tracing-subscriber",
"dep:tracing",
]
initializer-mongodb = ["dep:mongodb", "dep:serde", "dep:serde_json"]