Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-io/Cargo.toml
6939 views
1
[package]
2
name = "polars-io"
3
version = { workspace = true }
4
authors = { workspace = true }
5
edition = { workspace = true }
6
homepage = { workspace = true }
7
license = { workspace = true }
8
repository = { workspace = true }
9
description = "IO related logic for the Polars DataFrame library"
10
11
[dependencies]
12
polars-core = { workspace = true }
13
polars-error = { workspace = true }
14
polars-json = { workspace = true, optional = true }
15
polars-parquet = { workspace = true, optional = true }
16
polars-schema = { workspace = true }
17
polars-time = { workspace = true, features = [], optional = true }
18
polars-utils = { workspace = true, features = ['mmap'] }
19
20
arrow = { workspace = true }
21
async-trait = { workspace = true, optional = true }
22
atoi_simd = { workspace = true, optional = true }
23
blake3 = { version = "1.6.1", optional = true }
24
bytes = { workspace = true }
25
chrono = { workspace = true, optional = true }
26
chrono-tz = { workspace = true, optional = true }
27
fast-float2 = { workspace = true, optional = true }
28
flate2 = { workspace = true, optional = true }
29
futures = { workspace = true, optional = true }
30
glob = { version = "0.3" }
31
hashbrown = { workspace = true }
32
itoa = { workspace = true, optional = true }
33
memchr = { workspace = true }
34
memmap = { workspace = true }
35
num-traits = { workspace = true }
36
object_store = { workspace = true, optional = true }
37
percent-encoding = { workspace = true }
38
pyo3 = { workspace = true, optional = true }
39
rayon = { workspace = true }
40
regex = { workspace = true }
41
reqwest = { workspace = true, optional = true, features = ["json"] }
42
ryu = { workspace = true, optional = true }
43
schemars = { workspace = true, optional = true }
44
serde = { workspace = true, features = ["rc"], optional = true }
45
serde_json = { version = "1", optional = true }
46
simd-json = { workspace = true, optional = true }
47
simdutf8 = { workspace = true, optional = true }
48
strum = { workspace = true, optional = true }
49
strum_macros = { workspace = true, optional = true }
50
tokio = { workspace = true, features = ["fs", "net", "rt-multi-thread", "time", "sync"], optional = true }
51
tokio-util = { workspace = true, features = ["io", "io-util"], optional = true }
52
url = { workspace = true, optional = true }
53
zstd = { workspace = true, optional = true }
54
55
[target.'cfg(not(target_family = "wasm"))'.dependencies]
56
fs4 = { version = "0.13", features = ["sync"], optional = true }
57
home = "0.5.4"
58
59
[dev-dependencies]
60
tempfile = "3"
61
62
[features]
63
catalog = ["cloud", "serde", "reqwest", "futures", "strum", "strum_macros", "chrono"]
64
default = ["decompress"]
65
# support for arrows json parsing
66
json = [
67
"polars-json",
68
"simd-json",
69
"atoi_simd",
70
"dtype-struct",
71
"csv",
72
]
73
serde = ["dep:serde", "polars-core/serde-lazy", "polars-parquet/serde", "polars-utils/serde"]
74
dsl-schema = ["dep:schemars", "polars-core/dsl-schema", "polars-parquet/dsl-schema", "polars-utils/dsl-schema"]
75
# support for arrows ipc file parsing
76
ipc = ["arrow/io_ipc", "arrow/io_ipc_compression"]
77
# support for arrows streaming ipc file parsing
78
ipc_streaming = ["arrow/io_ipc", "arrow/io_ipc_compression"]
79
# support for arrow avro parsing
80
avro = ["arrow/io_avro", "arrow/io_avro_compression"]
81
csv = ["atoi_simd", "polars-core/rows", "itoa", "ryu", "fast-float2", "simdutf8"]
82
decompress = ["flate2/zlib-rs", "zstd"]
83
dtype-u8 = ["polars-core/dtype-u8"]
84
dtype-u16 = ["polars-core/dtype-u16"]
85
dtype-i8 = ["polars-core/dtype-i8"]
86
dtype-i16 = ["polars-core/dtype-i16"]
87
dtype-i128 = ["polars-core/dtype-i128"]
88
dtype-categorical = ["polars-core/dtype-categorical"]
89
dtype-date = ["polars-core/dtype-date", "polars-time/dtype-date"]
90
object = ["polars-core/object"]
91
dtype-datetime = [
92
"polars-core/dtype-datetime",
93
"polars-core/temporal",
94
"polars-time/dtype-datetime",
95
"chrono",
96
]
97
timezones = [
98
"chrono-tz",
99
"dtype-datetime",
100
"arrow/timezones",
101
"polars-json?/chrono-tz",
102
"polars-json?/timezones",
103
]
104
dtype-time = ["polars-core/dtype-time", "polars-core/temporal", "polars-time/dtype-time"]
105
dtype-duration = ["polars-core/dtype-duration", "polars-time/dtype-duration"]
106
dtype-struct = ["polars-core/dtype-struct"]
107
dtype-decimal = ["polars-core/dtype-decimal", "polars-json?/dtype-decimal"]
108
fmt = ["polars-core/fmt"]
109
lazy = []
110
parquet = ["polars-parquet", "polars-parquet/compression", "polars-core/partition_by"]
111
async = [
112
"async-trait",
113
"futures",
114
"tokio",
115
"tokio-util",
116
"polars-error/regex",
117
"polars-parquet?/async",
118
]
119
cloud = [
120
"object_store",
121
"async",
122
"polars-error/object_store",
123
"url",
124
"serde_json",
125
"serde",
126
"file_cache",
127
"reqwest",
128
"http",
129
]
130
file_cache = ["async", "dep:blake3", "dep:fs4", "serde_json", "cloud"]
131
aws = ["object_store/aws", "cloud", "reqwest"]
132
azure = ["object_store/azure", "cloud"]
133
gcp = ["object_store/gcp", "cloud"]
134
http = ["object_store/http", "cloud"]
135
temporal = ["dtype-datetime", "dtype-date", "dtype-time"]
136
simd = []
137
python = ["pyo3", "polars-error/python", "polars-utils/python"]
138
allow_unused = []
139
140
[package.metadata.docs.rs]
141
all-features = true
142
# defines the configuration attribute `docsrs`
143
rustdoc-args = ["--cfg", "docsrs"]
144
145
[lints]
146
workspace = true
147
148