Skip to content

Commit c0c3621

Browse files
committed
Update brotli decompressor crates and fix #91
1 parent e216a8a commit c0c3621

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "brotli"
3-
version = "3.3.4"
3+
version = "3.4.0"
44
authors = ["Daniel Reiter Horn <[email protected]>", "The Brotli Authors"]
55
description = "A brotli compressor and decompressor that with an interface avoiding the rust stdlib. This makes it suitable for embedded devices and kernels. It is designed with a pluggable allocator so that the standard lib's allocator may be employed. The default build also includes a stdlib allocator and stream interface. Disable this with --features=no-stdlib. All included code is safe."
66
license = "BSD-3-Clause/MIT"
@@ -27,9 +27,9 @@ incremental=false
2727

2828
[dependencies]
2929
"alloc-no-stdlib" = {version="2.0"}
30-
"brotli-decompressor" = {version="~2.3", default-features=false}
30+
"brotli-decompressor" = {version="~2.5", default-features=false}
3131
"alloc-stdlib" = {version="~0.2", optional=true}
32-
"packed_simd_2" = {version="0.3", optional=true}
32+
# Uncomment once this packed_simd "packed_simd_2" = {version="0.3", optional=true}
3333
"sha2" = {version="~0.10", optional=true}
3434

3535
[features]
@@ -41,6 +41,6 @@ external-literal-probability = []
4141
disable-timer = ["brotli-decompressor/disable-timer"]
4242
benchmark = ["brotli-decompressor/benchmark"]
4343
vector_scratch_space = []
44-
simd = ["packed_simd_2/into_bits"]
44+
#simd = ["packed_simd_2/into_bits"]
4545
pass-through-ffi-panics = []
4646
ffi-api = []

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
[![crates.io](https://img.shields.io/crates/v/brotli.svg)](https://crates.io/crates/brotli)
44
[![Build Status](https://travis-ci.org/dropbox/rust-brotli.svg?branch=master)](https://travis-ci.org/dropbox/rust-brotli)
55

6+
## What's new in 3.4
7+
Brotli decompressor's reader and writer has better behavior when operating upon brotli streams with extra bits at the end.
8+
Optional features like stdsimd are now tested or disabled for now.
69

710
## What's new in 3.2
811
* into_inner conversions for both Reader and Writer classes

src/enc/encode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ pub fn HasherSetup<Alloc:alloc::Allocator<u16> + alloc::Allocator<u32>>(m16: &mu
11611161
HowPrepared::ALREADY_PREPARED => {}
11621162
HowPrepared::NEWLY_PREPARED => {
11631163
if position == 0usize {
1164-
let mut common = handle.GetHasherCommon();
1164+
let common = handle.GetHasherCommon();
11651165
(*common).dict_num_lookups = 0usize;
11661166
(*common).dict_num_matches = 0usize;
11671167
}

0 commit comments

Comments
 (0)