forked from jorgecarleitao/arrow2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
201 lines (163 loc) · 4.67 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
[package]
name = "arrow2"
version = "0.5.3"
license = "Apache-2.0"
description = "Unofficial implementation of Apache Arrow spec in safe Rust"
homepage = "https://github.com/jorgecarleitao/arrow2"
repository = "https://github.com/jorgecarleitao/arrow2"
authors = ["Jorge C. Leitao <[email protected]>", "Apache Arrow <[email protected]>"]
keywords = [ "arrow", "analytics" ]
edition = "2018"
exclude = ["testing/"]
[lib]
name = "arrow2"
bench = false
[dependencies]
num-traits = "0.2"
chrono = { version = "0.4", default_features = false, features = ["std"] }
chrono-tz = { version = "0.5", optional = true }
# To efficiently cast numbers to strings
lexical-core = { version = "0.8", optional = true }
# We need to Hash values before sending them to an hasher. This
# crate provides HashMap that assumes pre-hashed values.
hash_hasher = "^2.0.3"
csv = { version = "^1.1", optional = true }
regex = { version = "^1.3", optional = true }
lazy_static = { version = "^1.4", optional = true }
streaming-iterator = { version = "0.1", optional = true }
serde = { version = "^1.0", features = ["rc"], optional = true }
serde_derive = { version = "^1.0", optional = true }
serde_json = { version = "^1.0", features = ["preserve_order"], optional = true }
indexmap = { version = "^1.6", optional = true }
# used to print columns in a nice columnar format
comfy-table = { version = "4.0", optional = true, default-features = false }
flatbuffers = { version = "=2.0.0", optional = true }
hex = { version = "^0.4", optional = true }
# for IPC compression
lz4 = { version = "1.23.1", optional = true }
zstd = { version = "0.9", optional = true }
rand = { version = "0.8", optional = true }
itertools = { version = "^0.10", optional = true }
base64 = { version = "0.13.0", optional = true }
packed_simd = { version = "0.3", optional = true, package = "packed_simd_2" }
# to write to parquet as a stream
futures = { version = "0.3", optional = true }
# for faster hashing
ahash = { version = "0.7", optional = true }
parquet2 = { version = "0.4", optional = true, default_features = false, features = ["stream"] }
# for division/remainder optimization at runtime
strength_reduce = { version = "0.2", optional = true }
multiversion = { version = "0.6.1", optional = true }
[dev-dependencies]
rand = "0.8"
criterion = "0.3"
flate2 = "1"
doc-comment = "0.3"
crossbeam-channel = "0.5.1"
[package.metadata.docs.rs]
features = ["full"]
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = []
full = [
"io_csv",
"io_json",
"io_ipc",
"io_ipc_compression",
"io_json_integration",
"io_print",
"io_parquet",
"io_parquet_compression",
"regex",
"merge_sort",
"ahash",
"compute",
# parses timezones used in timestamp conversions
"chrono-tz",
]
merge_sort = ["itertools"]
io_csv = ["csv", "lazy_static", "regex", "lexical-core", "streaming-iterator"]
io_json = ["serde", "serde_json", "indexmap"]
io_ipc = ["flatbuffers"]
io_ipc_compression = ["lz4", "zstd"]
io_parquet_compression = [
"parquet2/zstd",
"parquet2/snappy",
"parquet2/gzip",
"parquet2/lz4",
"parquet2/brotli",
]
# io_json: its dependencies + error handling
# serde_derive: there is some derive around
io_json_integration = ["io_json", "serde_derive", "hex"]
io_print = ["comfy-table"]
# the compute kernels. Disabling this significantly reduces compile time.
compute = ["strength_reduce", "multiversion", "lexical-core"]
# base64 + io_ipc because arrow schemas are stored as base64-encoded ipc format.
io_parquet = ["parquet2", "io_ipc", "base64", "futures"]
benchmarks = ["rand"]
simd = ["packed_simd"]
[package.metadata.cargo-all-features]
skip_feature_sets = [
["benchmarks"],
["merge_sort"],
["io_json_integration"],
# this does not change the public API
["io_parquet_compression"],
["simd"],
]
skip_optional_dependencies = true
[[bench]]
name = "take_kernels"
harness = false
[[bench]]
name = "filter_kernels"
harness = false
[[bench]]
name = "cast_kernels"
harness = false
[[bench]]
name = "sort_kernel"
harness = false
[[bench]]
name = "length_kernel"
harness = false
[[bench]]
name = "count_zeros"
harness = false
[[bench]]
name = "from_trusted_len_iter"
harness = false
[[bench]]
name = "growable"
harness = false
[[bench]]
name = "comparison_kernels"
harness = false
[[bench]]
name = "read_parquet"
harness = false
[[bench]]
name = "write_parquet"
harness = false
[[bench]]
name = "aggregate"
harness = false
[[bench]]
name = "write_ipc"
harness = false
[[bench]]
name = "arithmetic_kernels"
harness = false
[[bench]]
name = "bitmap"
harness = false
[[bench]]
name = "concat"
harness = false
[[bench]]
name = "bitmap_ops"
harness = false
[[bench]]
name = "write_csv"
harness = false