Update ruzstd requirement from 0.7.0 to 0.8.0 (#18145)
# Objective - Fixes #18129 ## Solution - Update ruzstd requirement from 0.7.0 to 0.8.0 and fixed imports. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
912de69cfb
commit
a23f397dab
@ -73,7 +73,7 @@ ddsfile = { version = "0.5.2", optional = true }
|
||||
ktx2 = { version = "0.3.0", optional = true }
|
||||
# For ktx2 supercompression
|
||||
flate2 = { version = "1.0.22", optional = true }
|
||||
ruzstd = { version = "0.7.0", optional = true }
|
||||
ruzstd = { version = "0.8.0", optional = true }
|
||||
# For transcoding of UASTC/ETC1S universal formats, and for .basis file support
|
||||
basis-universal = { version = "0.3.0", optional = true }
|
||||
tracing = { version = "0.1", default-features = false, features = ["std"] }
|
||||
|
@ -61,7 +61,7 @@ pub fn ktx2_buffer_to_image(
|
||||
#[cfg(feature = "ruzstd")]
|
||||
SupercompressionScheme::Zstandard => {
|
||||
let mut cursor = std::io::Cursor::new(_level_data);
|
||||
let mut decoder = ruzstd::StreamingDecoder::new(&mut cursor)
|
||||
let mut decoder = ruzstd::decoding::StreamingDecoder::new(&mut cursor)
|
||||
.map_err(|err| TextureError::SuperDecompressionError(err.to_string()))?;
|
||||
let mut decompressed = Vec::new();
|
||||
decoder.read_to_end(&mut decompressed).map_err(|err| {
|
||||
|
Loading…
Reference in New Issue
Block a user