Skip to content

Commit e862ff1

Browse files
authored
rm unused dep from compression-codecs and make memchr optional
since memchr is only used for gzip Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
1 parent 1e4b8d6 commit e862ff1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

crates/compression-codecs/Cargo.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ all-algorithms = [
3131

3232
# algorithms
3333
deflate = ["flate2"]
34-
gzip = ["flate2"]
34+
gzip = ["flate2", "memchr"]
3535
lz4 = ["dep:lz4"]
3636
lzma = ["dep:liblzma"]
3737
xz = ["lzma"]
@@ -44,19 +44,17 @@ deflate64 = ["dep:deflate64"]
4444

4545
[dependencies]
4646
# Workspace dependencies.
47-
compression-core.workspace = true
48-
futures-core.workspace = true
49-
memchr.workspace = true
50-
pin-project-lite.workspace = true
47+
compression-core.workspace = tru
5148
# features
5249
brotli = { version = "8", optional = true }
5350
bzip2 = { version = "0.6", optional = true }
51+
deflate64 = { version = "0.1.5", optional = true }
5452
flate2 = { version = "1.0.13", optional = true }
5553
libzstd = { package = "zstd", version = "0.13.1", optional = true, default-features = false }
5654
lz4 = { version = "1.28.1", optional = true }
5755
liblzma = { version = "0.4.4", optional = true }
56+
memchr = { version = "2", optional = true }
5857
zstd-safe = { version = "7", optional = true, default-features = false }
59-
deflate64 = { version = "0.1.5", optional = true }
6058

6159
[lints]
6260
workspace = true

0 commit comments

Comments
 (0)