11[package ]
22name = " oneio"
3- version = " 0.19.0 "
3+ version = " 0.19.1 "
44authors = [
" Mingwei Zhang <[email protected] >" ]
55edition = " 2021"
66readme = " README.md"
@@ -30,7 +30,8 @@ reqwest = { version = "0.12", default-features = false, features = ["blocking",
3030suppaftp = { version = " 7.0" , optional = true }
3131
3232# feature: compressions
33- flate2 = { version = " 1" , optional = true }
33+ # Turn off flate2 default-features so we can explicitly choose backend via features
34+ flate2 = { version = " 1" , optional = true , default-features = false }
3435bzip2 = { version = " 0.6.0" , optional = true }
3536lz4 = { version = " 1.24" , optional = true }
3637xz2 = { version = " 0.1" , optional = true }
@@ -45,7 +46,7 @@ serde = { version = "1.0", optional = true }
4546serde_json = { version = " 1.0" , optional = true }
4647
4748# feature: s3
48- rust-s3 = { version = " 0.35 " , optional = true , default-features = false , features = [
49+ rust-s3 = { version = " 0.37 " , optional = true , default-features = false , features = [
4950 " sync" ,
5051] }
5152
@@ -75,8 +76,14 @@ https = ["http", "rustls"] # https needs http
7576ftp = [" https" , " suppaftp" ] # ftp needs https
7677s3 = [" rust-s3" ]
7778
78- # Compression features (independent)
79- gz = [" flate2" ]
79+ gz = [" gz-zlib-rs" ]
80+ # internal feature to enable gzip support
81+ any_gz = []
82+ # fastest Rust impl with some unsafe code
83+ gz-zlib-rs = [" any_gz" , " flate2/zlib-rs" ]
84+ # slower pure safe Rust impl
85+ gz-miniz = [" any_gz" , " flate2/miniz_oxide" , " flate2/any_impl" ]
86+
8087bz = [" bzip2" ]
8188lz = [" lz4" ]
8289xz = [" xz2" ]
@@ -111,6 +118,13 @@ tracing-subscriber = "0.3"
111118tar = " 0.4"
112119tokio = { version = " 1.0" , features = [" macros" , " rt" ] }
113120indicatif = " 0.18"
121+ criterion = { version = " 0.5" , default-features = false }
122+
123+ # Benchmarks
124+ [[bench ]]
125+ name = " gzip_decompress"
126+ harness = false
127+ required-features = [" any_gz" ]
114128
115129# This list only includes examples which require additional features to run. These are more in the examples' directory.
116130[[example ]]
0 commit comments