Skip to content

Commit

Permalink
Merge pull request #550 from image-rs/lets-go
Browse files Browse the repository at this point in the history
Release 0.17.16
  • Loading branch information
HeroicKatora authored Dec 19, 2024
2 parents 4a1b982 + 060925e commit fbf2566
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "png"
version = "0.17.15"
version = "0.17.16"
license = "MIT OR Apache-2.0"

description = "PNG decoding and encoding library in pure Rust"
Expand Down Expand Up @@ -36,12 +36,15 @@ getopts = "0.2.14"
glium = { version = "0.32", features = ["glutin"], default-features = false }
glob = "0.3"
rand = "0.8.4"
term = "0.7"
term = "1.0.1"

[features]
unstable = ["crc32fast/nightly"]
benchmarks = []

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }

[[bench]]
path = "benches/decoder.rs"
name = "decoder"
Expand Down
1 change: 1 addition & 0 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ impl Info<'_> {
///
/// Note that this does _not_ include the PNG signature, it starts with the IHDR chunk and then
/// includes other chunks that were added to the header.
#[deprecated(note = "Use Encoder+Writer instead")]
pub fn encode<W: Write>(&self, mut w: W) -> encoder::Result<()> {
// Encode the IHDR chunk
let mut data = [0; 13];
Expand Down
1 change: 1 addition & 0 deletions src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ impl<W: Write> Writer<W> {
}

self.w.write_all(&[137, 80, 78, 71, 13, 10, 26, 10])?; // PNG signature
#[allow(deprecated)]
info.encode(&mut self.w)?;

Ok(self)
Expand Down

0 comments on commit fbf2566

Please sign in to comment.