-
Notifications
You must be signed in to change notification settings - Fork 513
Expand file tree
/
Copy pathCargo.toml
More file actions
184 lines (171 loc) · 6.16 KB
/
Copy pathCargo.toml
File metadata and controls
184 lines (171 loc) · 6.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
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
[package]
name = "mz-ore"
description = "Internal utility libraries for Materialize."
version = "0.1.0"
license = "Apache-2.0"
edition.workspace = true
rust-version.workspace = true
authors = ["Materialize, Inc."]
[lints]
workspace = true
[dependencies]
anyhow = { workspace = true, optional = true }
# NB: ore is meant to be an extension of the Rust stdlib. To keep it
# lightweight, dependencies on external crates should be avoided if possible. If
# an external crate is required, it must be optional and feature-gated.
#
# Exceptions: `either` (zero deps, quasi-stdlib) and `zeroize` (zero runtime
# deps, security-critical — must be available unconditionally so that
# `ore::secure` types are always accessible without feature-flag opt-in).
async-trait = { workspace = true, optional = true }
bytemuck = { workspace = true, optional = true }
bytes = { workspace = true, optional = true }
chrono = { workspace = true, optional = true }
clap = { workspace = true, optional = true, features = ["env", "string"] }
columnation = { workspace = true, optional = true }
columnar = { workspace = true, optional = true }
compact_bytes = { workspace = true, optional = true }
ctor = { workspace = true, optional = true }
differential-dataflow = { workspace = true, optional = true }
derivative.workspace = true
either.workspace = true
futures = { workspace = true, optional = true }
hibitset = { workspace = true, optional = true }
ipnet.workspace = true
itertools.workspace = true
lgalloc = { workspace = true, optional = true }
libc = { workspace = true, optional = true }
lz4_flex = { workspace = true, optional = true }
mz-ore-proc = { path = "../ore-proc", default-features = false }
num.workspace = true
num-traits = { workspace = true, optional = true }
# The vendored feature is transitively depended upon by tokio-openssl.
openssl = { workspace = true, optional = true }
parquet = { workspace = true, optional = true }
paste.workspace = true
pin-project.workspace = true
prometheus = { workspace = true, optional = true }
proptest = { workspace = true, optional = true }
proptest-derive = { workspace = true, optional = true }
rand = { workspace = true, optional = true }
smallvec = { workspace = true, optional = true }
stacker = { workspace = true, optional = true }
sentry = { workspace = true, optional = true }
sentry-panic = { workspace = true, optional = true }
serde.workspace = true
tokio = { workspace = true, optional = true }
tokio-openssl = { workspace = true, optional = true }
thiserror.workspace = true
tracing-capture = { workspace = true, optional = true }
# TODO(guswynn): determine, when, if ever, we can remove `tracing-log`
# The `tracing-log` feature here is load-bearing: While our busiest-logging dependency (`rdkafka`) is now hooked-up
# to use `tracing`, we cannot remove this feature until we guarantee no dependencies log using the `log` crate, for
# log lines we care about.
# Note that this feature is distinct from `tracing`'s `log` feature, which has `tracing` macros emit `log` records if
# there is no global `tracing` subscriber.
tracing-subscriber = { workspace = true, optional = true }
uuid = { workspace = true, optional = true, features = ["v4", "v7"] }
url = { workspace = true, features = ["serde"] }
zeroize.workspace = true
# For the `tracing` feature
http = { workspace = true, optional = true }
tracing = { workspace = true, optional = true }
tracing-opentelemetry = { workspace = true, optional = true }
tonic = { workspace = true, optional = true }
tokio-native-tls = { workspace = true, optional = true }
native-tls = { workspace = true, optional = true }
hyper-tls = { version = "0.6.0", optional = true }
hyper-util = { workspace = true, optional = true }
opentelemetry = { workspace = true, optional = true }
opentelemetry-otlp = { workspace = true, optional = true }
opentelemetry_sdk = { workspace = true, optional = true }
console-subscriber = { workspace = true, optional = true }
sentry-tracing = { workspace = true, optional = true }
turmoil = { workspace = true, optional = true }
yansi = { workspace = true, optional = true }
[dev-dependencies]
anyhow.workspace = true
criterion.workspace = true
mz-ore = { path = "../ore", features = ["id_gen", "chrono", "test"] }
proptest.workspace = true
scopeguard.workspace = true
serde_json.workspace = true
tempfile.workspace = true
tokio.workspace = true
tokio-test.workspace = true
tracing-subscriber.workspace = true
[features]
default = ["tokio-console"]
async = [
"async-trait",
"futures",
"metrics",
"openssl",
"tokio/tracing",
"tokio-openssl",
"tokio",
"dep:tracing",
]
bytes = ["dep:bytes", "bytes/serde", "compact_bytes", "smallvec", "smallvec/const_generics", "smallvec/serde", "region", "tracing"]
network = ["async", "dep:bytes", "smallvec", "dep:tracing"]
panic = ["sentry-panic"]
process = ["libc"]
region = ["dep:lgalloc", "dep:bytemuck"]
tracing = [
"anyhow",
"dep:tracing",
"tracing-subscriber",
"tracing-subscriber/ansi",
"tracing-opentelemetry",
"tokio-native-tls",
"native-tls",
"http",
"hyper-tls",
"hyper-util",
"metrics",
"opentelemetry",
"opentelemetry-otlp",
"opentelemetry_sdk",
"tonic",
"sentry",
"sentry-tracing",
"yansi",
]
tokio-console = ["console-subscriber", "tokio", "tokio/tracing", "network"]
cli = ["clap"]
stack = ["stacker"]
test = ["anyhow", "ctor", "tracing-subscriber", "assert"]
metrics = ["prometheus", "assert"]
id_gen = ["hibitset", "rand", "uuid"]
capture = ["tracing-capture"]
assert-no-tracing = ["ctor"]
assert = ["assert-no-tracing", "ctor", "tracing"]
proptest = ["dep:proptest", "proptest-derive"]
overflowing = ["assert"]
pager = ["dep:bytemuck", "libc", "rand", "dep:tracing", "dep:lz4_flex"]
[[test]]
name = "future"
required-features = ["async", "panic"]
[[test]]
name = "panic"
required-features = ["panic"]
[[test]]
name = "task"
required-features = ["async"]
[[bench]]
name = "id_gen"
harness = false
[[bench]]
name = "bytes"
harness = false
required-features = ["bytes", "region", "tracing"]
[[bench]]
name = "pager"
harness = false
required-features = ["pager"]
[[example]]
name = "pager_merge"
required-features = ["pager"]
[package.metadata.cargo-udeps.ignore]
# Only used in doc-tests.
development = ["tokio-test"]