png is a bitmap format? who knew!
update
bendn 3 months ago
parent b5ce1a6 · commit a6deb16
-rw-r--r--Cargo.toml5
-rw-r--r--README.md2
-rw-r--r--benches/bench.rs3
-rw-r--r--src/lib.rs3
4 files changed, 7 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 3ce512b..19d11bc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "pngenc"
-version = "0.1.0"
-edition = "2021"
+version = "0.1.1"
+edition = "2024"
description = "portable network graphics (PNG) encoding"
authors = ["bend-n <[email protected]>"]
license = "MIT"
@@ -11,6 +11,7 @@ keywords = ["image", "format", "encoding"]
categories = ["multimedia::images", "graphics", "encoding"]
[dependencies]
+array_chunks = "1.0.0"
atools = "0.1.1"
crc32fast = { version = "1.4", features = ["nightly"] }
simd-adler32 = "0.3.7"
diff --git a/README.md b/README.md
index 2154f32..54c42b8 100644
--- a/README.md
+++ b/README.md
@@ -10,4 +10,4 @@ well, you see, sometimes pngs dont need to be compressed? what do you mean you w
ya see, it does do plenty of speeding
-![](./benches/sped.svg) \ No newline at end of file
+![](./benches/sped.svg)
diff --git a/benches/bench.rs b/benches/bench.rs
index decbccf..90ce472 100644
--- a/benches/bench.rs
+++ b/benches/bench.rs
@@ -1,4 +1,5 @@
-#![feature(test, array_chunks)]
+#![feature(test)]
+use array_chunks::*;
extern crate test;
const W: u32 = 2144;
const H: u32 = 1424;
diff --git a/src/lib.rs b/src/lib.rs
index 41d3e86..389cdfb 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -12,8 +12,7 @@
//! ).unwrap();
//! # assert_eq!(crc32fast::hash(&v), 0xd7d47c0e);
//! ```
-#![allow(incomplete_features)]
-#![feature(generic_const_exprs, test, slice_as_chunks, array_chunks)]
+#![allow(unsafe_op_in_unsafe_fn)]
use atools::prelude::*;
use std::{
io::{self, Write},