Skip to content

DeflateHandler no longer works with newer versions of rustc #330

@AlexDaniel

Description

@AlexDaniel

See rust-lang/rust#77499 for an example of a similar issue.

In ws this is the error message when you try to use DeflateHandler:

attempted to zero-initialize type `deflate::ffi::z_stream`, which is invalid

Installing an older version with rustup makes it work: rustup install nightly-2020-09-26.

As I understand, the issue is here:

let mut stream: Box<ffi::z_stream> = Box::new(mem::zeroed());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions