forked from apache/opendal
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
175 lines (156 loc) · 5 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
[package]
authors = ["Databend Authors <[email protected]>"]
categories = ["filesystem"]
description = "OpenDAL: Access data freely, painlessly, and efficiently."
edition = "2021"
exclude = ["docs/", "testdata/"]
homepage = "https://opendal.databend.rs/"
keywords = ["storage", "fs", "s3", "azblob", "gcs"]
license = "Apache-2.0"
name = "opendal"
repository = "https://github.com/datafuselabs/opendal"
version = "0.24.6"
# MSRV of OpenDAL. Please update this field while bump.
rust-version = "1.60"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["rustls"]
# Enable unwind safe support so that users can check if the operator is safe # to use after panic.
unwind-safe = []
# Enable compress support so that users can decompress while reading.
compress = ["async-compression"]
# Enable trust-dns for pure rust dns cache.
trust-dns = ["reqwest/trust-dns", "dep:trust-dns-resolver"]
# Enable rustls for TLS support
rustls = ["reqwest/rustls-tls-native-roots", "ureq/tls", "ureq/native-certs"]
# Enable native-tls for TLS support
native-tls = ["reqwest/native-tls", "ureq/native-tls"]
# Enable vendored native-tls for TLS support
native-tls-vendored = ["reqwest/native-tls-vendored", "ureq/native-tls"]
# Enable all layers.
layers-all = ["layers-metrics", "layers-tracing"]
# Enable layers metrics support
layers-metrics = ["dep:metrics"]
# Enable layers tracing support.
layers-tracing = ["dep:tracing"]
# Enable services hdfs support
services-hdfs = ["dep:hdrs"]
# Enable services ftp support
services-ftp = ["dep:suppaftp", "dep:lazy-regex", "dep:bb8", "dep:async-tls"]
# Enable services ipfs support
services-ipfs = ["dep:prost"]
# Enable services memcached support
services-memcached = ["dep:bb8", "dep:memcache-async"]
# Enable services moka support
services-moka = ["dep:moka"]
# Enable services redis support
services-redis = ["dep:redis"]
# Enable services rocksdb support
services-rocksdb = ["dep:rocksdb"]
[lib]
bench = false
[[bench]]
harness = false
name = "ops"
[[bench]]
harness = false
name = "io"
[[bench]]
harness = false
name = "path"
[[bench]]
harness = false
name = "layers"
required-features = ["layers-all"]
[[example]]
name = "hdfs"
required-features = ["services-hdfs"]
[[example]]
name = "ipfs"
required-features = ["services-ipfs"]
[[example]]
name = "ftp"
required-features = ["services-ftp"]
[[example]]
name = "redis"
required-features = ["services-redis"]
[[example]]
name = "rocksdb"
required-features = ["services-rocksdb"]
[[example]]
name = "tracing_layer"
required-features = ["layers-all"]
[dependencies]
anyhow = { version = "1.0.30", features = ["std"] }
async-compat = "0.2"
# Temp workaround, should come back to tagged version after https://github.com/Nemo157/async-compression/issues/150 resolved.
async-compression = { package = "async-compression-issue-150-workaround", version = "0.3.15-issue-150", features = [
"futures-io",
"all-algorithms",
], optional = true }
async-tls = { version = "0.11", optional = true }
async-trait = "0.1.50"
backon = "0.2"
base64 = "0.21"
bb8 = { version = "0.8", optional = true }
bincode = { version = "2.0.0-rc.2", features = ["serde"] }
bytes = "1.2"
flagset = "0.4"
futures = { version = "0.3", features = ["alloc"] }
hdrs = { version = "0.2", optional = true, features = ["async_file"] }
http = "0.2.5"
hyper = "0.14"
lazy-regex = { version = "2.4.1", optional = true }
log = "0.4"
md-5 = "0.10"
memcache-async = { version = "0.6", optional = true }
metrics = { version = "0.20", optional = true }
moka = { version = "0.9", optional = true, features = ["future"] }
once_cell = "1"
parking_lot = "0.12"
percent-encoding = "2"
pin-project = "1"
prost = { version = "0.11", optional = true }
quick-xml = { version = "0.27", features = ["serialize", "overlapped-lists"] }
redis = { version = "0.22", features = [
"tokio-comp",
"connection-manager",
], optional = true }
reqsign = "0.8.1"
reqwest = { version = "0.11.13", features = [
"multipart",
"stream",
], default-features = false }
rocksdb = { version = "0.19", optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
suppaftp = { version = "4.5", default-features = false, features = [
"async-secure",
"async-rustls",
], optional = true }
time = { version = "0.3.10", features = ["serde"] }
tokio = { version = "1.20", features = ["fs"] }
tracing = { version = "0.1", optional = true }
trust-dns-resolver = { version = "0.22", optional = true }
ureq = { version = "2", default-features = false }
uuid = { version = "1", features = ["serde", "v4"] }
[dev-dependencies]
cfg-if = "1"
criterion = { version = "0.4", features = ["async", "async_tokio"] }
dotenvy = "0.15"
env_logger = "0.10"
opentelemetry = { version = "0.17", default-features = false, features = [
"trace",
] }
opentelemetry-jaeger = "0.16"
paste = "1"
pretty_assertions = "1"
rand = "0.8"
serde_json = "1"
sha2 = "0.10"
size = "0.4"
tokio = { version = "1.20", features = ["fs", "macros", "rt-multi-thread"] }
tracing-opentelemetry = "0.17"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
wiremock = "0.5"