Skip to content

Commit

Permalink
Remove zstd-safe dep in libcramjam (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger authored Feb 3, 2024
1 parent 91a329f commit 5b54a35
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion libcramjam/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ lz4 = "^1"
flate2 = "^1"
libdeflater = "^1"
zstd = "0.13.0"
zstd-safe = "7.0.0" # NOTE: This is the same dep version as zstd, as they don't re-export
libc = { version = "0.2", optional = true }
xz2 = { version = "0.1.7", features = ["static"] }

Expand Down
3 changes: 1 addition & 2 deletions libcramjam/src/zstd.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
//! zstd de/compression interface
use std::io::{Error, Read, Write};
pub use zstd;
pub use zstd_safe;

const DEFAULT_COMPRESSION_LEVEL: i32 = 0;

/// Get the max compressed length for a single pass
pub fn compress_bound(len: usize) -> usize {
zstd_safe::compress_bound(len)
zstd::zstd_safe::compress_bound(len)
}

/// Decompress gzip data
Expand Down

0 comments on commit 5b54a35

Please sign in to comment.