forked from tailcallhq/tailcall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
157 lines (138 loc) · 4.15 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
[package]
name = "tailcall"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "tailcall"
path = "src/main.rs"
[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.39", default-features = false, optional = true }
http-cache-reqwest = { version = "0.13.0", features = [
"manager-moka",
], default-features = false, optional = true }
moka = { version = "0.12.5", default-features = false, features = [
"future",
], optional = true }
hyper-rustls = { version = "0.25.0", optional = true }
rustls = { version = "0.22.2", optional = true }
rustls-pemfile = { version = "1.0.4", optional = true }
rustls-pki-types = "1.2.0"
inquire = { version = "0.6.2", optional = true }
# dependencies safe for wasm:
schemars = { version = "0.8.16", features = ["derive"] }
hyper = { version = "0.14", features = ["server"], default-features = false }
tokio = { version = "1.36.0", features = ["rt", "time"] }
anyhow = "1.0.79"
derive_setters = "0.1.6"
thiserror = "1.0.56"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
serde_urlencoded = "0.7.1"
url = { version = "2", features = ["serde"] }
reqwest = { version = "0.11", features = [
"json",
"rustls-tls",
], default-features = false }
async-graphql = { version = "7.0.1", features = [
"dynamic-schema",
"dataloader",
"apollo_tracing",
] }
async-graphql-value = "7.0.1"
indexmap = "2.2"
once_cell = "1.19.0"
mini-v8 = { version = "0.4.1", optional = true }
clap = { version = "4.4.18", features = ["derive"] }
colored = "2"
regex = "1.10.3"
reqwest-middleware = "0.2.4"
async-trait = "0.1.77"
serde_path_to_error = "0.1.15"
cache_control = "0.2.0"
nom = "7.1.3"
exitcode = "1.1.2"
log = "0.4.20"
env_logger = "0.11.1"
stripmargin = "0.1.1"
num_cpus = "1.16.0"
fnv = "1.0.7"
futures-channel = { version = "0.3.30" }
futures-timer = { version = "3.0.2", features = ["wasm-bindgen"] }
futures-util = { version = "0.3.30" }
lru = { version = "0.12.2" }
webbrowser = { version = "0.8.12", features = ["hardened", "disable-wsl"] }
async-std = { version = "1.12.0", features = [
"wasm-bindgen-futures",
"unstable",
] }
ttl_cache = "0.5.1"
protox = "0.5.1"
protox-parse = "0.5.0"
prost-reflect = { version = "0.12.0", features = ["serde"] }
prost = "0.12.3"
update-informer = { version = "1.1.0", default-features = false, features = ["github", "reqwest"], optional = true }
lazy_static = "1.4.0"
which = { version = "6.0.0", optional = true }
[dev-dependencies]
criterion = "0.5.1"
httpmock = "0.7.0"
pretty_assertions = "1.4.0"
stripmargin = "0.1.1"
markdown = "1.0.0-alpha.16"
insta = { version = "1.34.0", features = ["json"] }
[features]
# Feature Flag to enable V8.
# V8 currently is not support on all platforms so we control it via this feature flag.
js = ["dep:mini-v8"]
# 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:rustls-pemfile",
"dep:inquire",
"dep:which",
"dep:update-informer",
]
# 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"]
[workspace]
members = [".", "autogen", "cloudflare", "testconv"]
# 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 = 'thin'
debug = false
incremental = false
overflow-checks = false
[[test]]
name = "execution_spec"
harness = false
[[bench]]
name = "json_like_bench"
harness = false
[[bench]]
name = "request_template_bench"
harness = false
[[bench]]
name = "data_loader_bench"
harness = false
[[bench]]
name = "impl_path_string_for_evaluation_context"
harness = false