Skip to content

Commit

Permalink
chore: replace lz4-sys with lz4
Browse files Browse the repository at this point in the history
  • Loading branch information
loyd committed Jun 5, 2022
1 parent ed59c51 commit 6f1c738
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test-util = ["hyper/server"]
watch = ["sha-1", "serde_json"]

# Compression
lz4 = ["lz4-sys", "clickhouse-rs-cityhash-sys"]
lz4 = ["dep:lz4", "clickhouse-rs-cityhash-sys"]
gzip = ["async-compression", "async-compression/gzip", "tokio-util"]
zlib = ["async-compression", "async-compression/zlib", "tokio-util"]
brotli = ["async-compression", "async-compression/brotli", "tokio-util"]
Expand All @@ -60,7 +60,7 @@ serde_json = { version = "1.0.68", optional = true }
static_assertions = "1.1.0"
async-compression = { version = "0.3.6", features = ["tokio"], optional = true }
tokio-util = { version = "0.6.0", default-features = false, features = ["codec", "io"], optional = true }
lz4-sys = { version = "1.9.2", optional = true }
lz4 = { version = "1.23.3", optional = true }
clickhouse-rs-cityhash-sys = { version = "0.1.2", optional = true }
sealed = "0.3.0"

Expand Down
2 changes: 1 addition & 1 deletion src/compression/lz4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{

use bytes::{Buf, BufMut, Bytes};
use futures::{ready, stream::Stream};
use lz4_sys::LZ4_decompress_safe;
use lz4::liblz4::LZ4_decompress_safe;

use crate::{
buflist::BufList,
Expand Down

0 comments on commit 6f1c738

Please sign in to comment.