From 11bf79ca06240405231d26a370c4540935625d2f Mon Sep 17 00:00:00 2001 From: poly000 <34085039+poly000@users.noreply.github.com> Date: Wed, 14 Feb 2024 22:43:51 +0800 Subject: [PATCH] fix: finally fix re-exporting png (#44) * feat: re-export `png` with feature gate `png` * ci: check all features * fix: use absolute path for png crate --- .github/workflows/rust.yml | 4 ++-- src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b37ea14..9592d63 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Build - run: cargo build --verbose + run: cargo build --verbose --all-features - name: Run tests - run: cargo test --verbose + run: cargo test --verbose --all-features diff --git a/src/lib.rs b/src/lib.rs index 6cf035a..777a62b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,4 +59,4 @@ pub use crate::apng::*; pub use crate::png::*; #[cfg(feature = "png")] -pub use png as image_png; +pub use ::png as image_png;