-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
156 lines (142 loc) · 5.21 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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[package]
authors = ["Matteo Giachino <[email protected]>"]
description = "A library to implement the bridge pattern"
edition = "2021"
license = "MIT"
name = "prima_bridge"
readme = "README.md"
repository = "https://github.com/primait/bridge.rs"
version = "0.20.0"
# See https://github.com/rust-lang/rust/issues/107557
rust-version = "1.72"
[features]
default = ["tracing_opentelemetry"]
auth0 = [
"rand",
"redis",
"jsonwebtoken",
"chrono",
"chacha20poly1305",
"dashmap",
"tracing",
]
grpc = ["tonic"]
gzip = ["reqwest/gzip"]
redis-tls = ["redis/tls", "redis/tokio-native-tls-comp"]
tracing_opentelemetry = ["tracing_opentelemetry_0_27"]
tracing_opentelemetry_0_21 = [
"_any_otel_version",
"tracing",
"tracing-opentelemetry_0_22_pkg",
"opentelemetry_0_21_pkg",
"opentelemetry_sdk_0_21_pkg",
]
tracing_opentelemetry_0_22 = [
"_any_otel_version",
"tracing",
"tracing-opentelemetry_0_23_pkg",
"opentelemetry_0_22_pkg",
"opentelemetry_sdk_0_22_pkg",
]
tracing_opentelemetry_0_23 = [
"_any_otel_version",
"tracing",
"tracing-opentelemetry_0_24_pkg",
"opentelemetry_0_23_pkg",
"opentelemetry_sdk_0_23_pkg",
]
tracing_opentelemetry_0_24 = [
"_any_otel_version",
"tracing",
"tracing-opentelemetry_0_25_pkg",
"opentelemetry_0_24_pkg",
"opentelemetry_sdk_0_24_pkg",
]
tracing_opentelemetry_0_25 = [
"_any_otel_version",
"tracing",
"tracing-opentelemetry_0_26_pkg",
"opentelemetry_0_25_pkg",
"opentelemetry_sdk_0_25_pkg",
]
tracing_opentelemetry_0_26 = [
"_any_otel_version",
"tracing",
"tracing-opentelemetry_0_27_pkg",
"opentelemetry_0_26_pkg",
"opentelemetry_sdk_0_26_pkg",
]
tracing_opentelemetry_0_27 = [
"_any_otel_version",
"tracing",
"tracing-opentelemetry_0_28_pkg",
"opentelemetry_0_27_pkg",
"opentelemetry_sdk_0_27_pkg",
]
_any_otel_version = []
[dependencies]
async-trait = "0.1"
bytes = "1.2"
chrono = { version = "0.4", default-features = false, features = [
"clock",
"std",
"serde",
], optional = true }
dashmap = { version = "6.0", optional = true }
futures = "0.3"
futures-util = "0.3"
jsonwebtoken = { version = "9.0", optional = true }
rand = { version = "0.8", optional = true }
redis = { version = "0.27", features = ["tokio-comp"], optional = true }
reqwest = { version = "0.12", features = ["json", "multipart", "stream"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "2"
tokio = { version = "1.16", features = ["macros", "rt-multi-thread", "fs"] }
tonic = { version = "0.12", default-features = false, optional = true }
tracing = { version = "0.1", optional = true }
uuid = { version = ">=0.7.0, <2.0.0", features = ["serde", "v4"] }
chacha20poly1305 = { version = "0.10.1", features = ["std"], optional = true }
reqwest-middleware = { version = "0.4.0", features = ["json", "multipart"] }
http = "1.0.0"
opentelemetry_0_21_pkg = { package = "opentelemetry", version = "0.21", optional = true }
opentelemetry_0_22_pkg = { package = "opentelemetry", version = "0.22", optional = true }
opentelemetry_0_23_pkg = { package = "opentelemetry", version = "0.23", optional = true }
opentelemetry_0_24_pkg = { package = "opentelemetry", version = "0.24", optional = true }
opentelemetry_0_25_pkg = { package = "opentelemetry", version = "0.25", optional = true }
opentelemetry_0_26_pkg = { package = "opentelemetry", version = "0.26", optional = true }
opentelemetry_0_27_pkg = { package = "opentelemetry", version = "0.27", optional = true }
opentelemetry_sdk_0_21_pkg = { package = "opentelemetry_sdk", version = "0.21", optional = true }
opentelemetry_sdk_0_22_pkg = { package = "opentelemetry_sdk", version = "0.22", optional = true }
opentelemetry_sdk_0_23_pkg = { package = "opentelemetry_sdk", version = "0.23", optional = true }
opentelemetry_sdk_0_24_pkg = { package = "opentelemetry_sdk", version = "0.24", optional = true }
opentelemetry_sdk_0_25_pkg = { package = "opentelemetry_sdk", version = "0.25", optional = true }
opentelemetry_sdk_0_26_pkg = { package = "opentelemetry_sdk", version = "0.26", optional = true }
opentelemetry_sdk_0_27_pkg = { package = "opentelemetry_sdk", version = "0.27", optional = true }
tracing-opentelemetry_0_22_pkg = { package = "tracing-opentelemetry", version = "0.22", optional = true }
tracing-opentelemetry_0_23_pkg = { package = "tracing-opentelemetry", version = "0.23", optional = true }
tracing-opentelemetry_0_24_pkg = { package = "tracing-opentelemetry", version = "0.24", optional = true }
tracing-opentelemetry_0_25_pkg = { package = "tracing-opentelemetry", version = "0.25", optional = true }
tracing-opentelemetry_0_26_pkg = { package = "tracing-opentelemetry", version = "0.26", optional = true }
tracing-opentelemetry_0_27_pkg = { package = "tracing-opentelemetry", version = "0.27", optional = true }
tracing-opentelemetry_0_28_pkg = { package = "tracing-opentelemetry", version = "0.28", optional = true }
[dev-dependencies]
flate2 = "1.0"
mockito = "1.0"
tokio = { version = "1.16", features = ["macros", "rt-multi-thread"] }
tonic = "0.12"
[profile.release]
codegen-units = 1
lto = "thin"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[example]]
name = "rest"
[[example]]
name = "graphql"
[[example]]
name = "graphql_multipart"
[[example]]
name = "auth0"
required-features = ["auth0"]