forked from tailcallhq/tailcall
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
293 lines (272 loc) · 8.17 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
[package]
name = "tailcall"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "tailcall"
path = "src/main.rs"
[workspace.dependencies]
anyhow = "1.0.82"
async-graphql = { version = "7.0.3" }
futures-util = { version = "0.3.30" }
indexmap = "2.2.6"
insta = { version = "1.38.0", features = ["json"] }
tokio = { version = "1.37.0", features = ["rt", "time"] }
reqwest = { version = "0.11", features = [
"json",
"rustls-tls",
], default-features = false }
tracing = "0.1.40"
lazy_static = "1.4.0"
serde_json = { version = "1.0.116", features = ["preserve_order"] }
serde = { version = "1.0.200", features = ["derive"] }
derive_more = "0.99.18"
thiserror = "1.0.59"
url = { version = "2.5.0", features = ["serde"] }
[dependencies]
# dependencies specific to CLI must have optional = true and the dep should be added to default feature.
# one needs to add default feature tag if it is something IO related or might conflict with WASM
mimalloc = { version = "0.1.41", default-features = false, optional = true }
http-cache-reqwest = { version = "0.13.0", features = [
"manager-moka",
], default-features = false, optional = true }
moka = { version = "0.12.7", default-features = false, features = [
"future",
], optional = true }
hyper-rustls = { version = "0.25.0", optional = true }
rustls = { version = "0.23.5", optional = true, features = [
"std",
], default-features = false }
rustls-pki-types = "1.5.0"
inquire = { version = "0.7.5", optional = true }
opentelemetry-otlp = { version = "0.16.0", features = [
"trace",
"logs",
"metrics",
# required to make grpc requests
"tls-roots",
], optional = true }
opentelemetry-system-metrics = { version = "0.2.0", optional = true }
tailcall-http-cache = { path = "tailcall-http-cache", optional = true }
tailcall-version = { path = "./tailcall-version", optional = true }
genai = { git = "https://github.com/laststylebender14/rust-genai.git", rev = "63a542ce20132503c520f4e07108e0d768f243c3", optional = true }
# dependencies safe for wasm:
rustls-pemfile = { version = "1.0.4" }
schemars = { version = "0.8.17", features = ["derive"] }
hyper = { version = "0.14.28", features = ["server"], default-features = false }
tokio = { workspace = true }
anyhow = { workspace = true }
reqwest = { workspace = true }
derive_setters = "0.1.6"
derive-getters = "0.5.0"
thiserror = { workspace = true }
serde_json = { workspace = true }
serde = { workspace = true }
serde_qs = "0.13"
serde_yaml = "0.9.34"
serde_urlencoded = "0.7.1"
url = { workspace = true }
indexmap = { workspace = true }
once_cell = "1.19.0"
clap = { version = "4.5.4", features = ["derive"] }
colored = "2.1.0"
regex = "1.10.4"
reqwest-middleware = "0.2.5"
async-trait = "0.1.80"
serde_path_to_error = "0.1.16"
cache_control = "0.2.0"
nom = "7.1.3"
exitcode = "1.1.2"
resource = "0.5.0"
stripmargin = "0.1.1"
num_cpus = "1.16.0"
fnv = "1.0.7"
futures-channel = { version = "0.3.30" }
futures-timer = { version = "3.0.3", features = ["wasm-bindgen"] }
futures-util = { workspace = true }
lru = { version = "0.12.3" }
async-std = { version = "1.12.0", features = [
"wasm-bindgen-futures",
"unstable",
] }
ttl_cache = "0.5.1"
protox = "0.7.0"
protox-parse = "0.7.0"
prost-reflect = { version = "0.14.0", features = ["serde"] }
prost = "0.13.1"
update-informer = { version = "1.1.0", default-features = false, features = [
"github",
"reqwest",
], optional = true }
lazy_static = { workspace = true }
which = { version = "6.0.1", optional = true }
async-recursion = "1.1.1"
rquickjs = { "version" = "0.5.1", optional = true, features = ["macro"] }
strum_macros = "0.26.4"
# TODO: disable some levels with features?
tracing = { workspace = true }
tracing-subscriber = { version = "0.3.18", features = [
"default",
"fmt",
"env-filter",
] }
tracing-opentelemetry = "0.24.0"
getrandom = { version = "0.2.14", features = ["js"] }
prometheus = "0.13.4"
tonic = { version = "0.11.0", default-features = false }
opentelemetry-semantic-conventions = "0.15.0"
opentelemetry = { version = "0.23.0", features = ["trace", "logs", "metrics"] }
opentelemetry_sdk = { version = "0.23.0", features = [
"trace",
"logs",
"metrics",
] }
opentelemetry-http = "0.12.0"
opentelemetry-stdout = { version = "0.4.0", features = [
"trace",
"logs",
"metrics",
] }
opentelemetry-appender-tracing = { version = "0.4.0" }
opentelemetry-prometheus = "0.16.0"
phonenumber = "0.3.4"
chrono = "0.4.38"
async-graphql-extension-apollo-tracing = { version = "3.2.15" }
headers = "0.3.9" # previous version until hyper is updated to 1+
mime = "0.3.17"
htpasswd-verify = { version = "0.3.0", git = "https://github.com/twistedfall/htpasswd-verify", rev = "ff14703083cbd639f7d05622b398926f3e718d61" } # fork version that is wasm compatible
jsonwebtoken = "9.3.0"
async-graphql-value = "7.0.3"
async-graphql = { workspace = true, features = [
"dynamic-schema",
"dataloader",
"apollo_tracing",
"opentelemetry",
] }
dotenvy = "0.15.7"
convert_case = "0.6.0"
rand = "0.8.5"
tailcall-macros = { path = "tailcall-macros" }
tailcall-tracker = { path = "tailcall-tracker", optional = true }
tailcall-typedefs-common = { path = "./tailcall-typedefs-common" }
tonic-types = "0.12.1"
datatest-stable = "0.2.9"
tokio-test = "0.4.4"
base64 = "0.22.1"
tailcall-hasher = { path = "tailcall-hasher" }
serde_json_borrow = "0.5.0"
pluralizer = "0.4.0"
path-clean = "=1.0.1"
pathdiff = "0.2.1"
num = "0.4.3"
indenter = "0.3.3"
derive_more = { workspace = true }
enum_dispatch = "0.3.13"
strum = "0.26.2"
maplit = "1.0.2"
[dev-dependencies]
tailcall-prettier = { path = "tailcall-prettier" }
criterion = "0.5.1"
httpmock = "0.7.0"
pretty_assertions = "1.4.0"
stripmargin = "0.1.1"
markdown = "1.0.0-alpha.17"
insta = { workspace = true }
tempfile = "3.10.1"
temp-env = "0.3.6"
maplit = "1.0.2"
tailcall-fixtures = { path = "./tailcall-fixtures" }
http-cache-semantics = { version = "1.0.1", default-features = false, features = [
"with_serde",
"reqwest",
] }
cacache = { version = "13.0.0", default-features = false, features = [
"tokio-runtime",
"mmap",
] }
test-log = { version = "0.2.16", default-features = false, features = [
"color",
"trace",
] }
flate2 = "1.0.30"
bincode = "1.3.3"
[features]
# Feature Flag to enable V8.
# V8 currently is not support on all platforms so, we control it via this feature flag.
js = ["dep:rquickjs"]
# Feature Flag to core CLI features.
# This is created to control what we expose for WASM.
# Will be deprecated once we move CLI to it's own crate and WASM builds won't depend on it.
cli = [
"tokio/fs",
"tokio/rt-multi-thread",
"dep:mimalloc",
"dep:http-cache-reqwest",
"dep:moka",
"dep:hyper-rustls",
"dep:rustls",
"dep:inquire",
"dep:which",
"dep:update-informer",
"opentelemetry_sdk/testing",
"opentelemetry_sdk/rt-tokio",
"dep:opentelemetry-otlp",
"dep:opentelemetry-system-metrics",
"dep:tailcall-tracker",
"dep:tailcall-http-cache",
"dep:tailcall-version",
"dep:genai",
]
# Feature flag to enable all default features.
# This is used by default locally while developing and on CI.
# We generally want to interface via CLI and have V8 enabled, while running tests.
default = ["cli", "js"]
# Feature flag to force JIT engine inside integration tests
force_jit = []
[workspace]
members = [
".",
"tailcall-typedefs-common",
"tailcall-typedefs",
"tailcall-aws-lambda",
"tailcall-cloudflare",
"tailcall-macros",
"tailcall-prettier",
"tailcall-fixtures",
"tailcall-upstream-grpc",
"tailcall-tracker",
"tailcall-wasm",
"tailcall-hasher",
"tailcall-http-cache",
"tailcall-version",
]
# Boost execution_spec snapshot diffing performance
[profile.dev.package]
insta.opt-level = 3
similar.opt-level = 3
[profile.release]
opt-level = 3
codegen-units = 1
panic = 'abort'
lto = 'fat'
debug = false
incremental = false
overflow-checks = false
[profile.release.package.tailcall-cloudflare]
strip = true
codegen-units = 1
opt-level = 'z'
[[bench]]
name = "tailcall_benches"
harness = false
[[test]]
name = "execution_spec"
harness = false
[[test]]
name = "cli_spec"
path = "tests/cli/gen.rs"
harness = false
[[test]]
name = "json_to_config_spec"
path = "src/core/generator/tests/json_to_config_spec.rs"
harness = false