Skip to content

Commit

Permalink
Add feature-gated test, remove Cargo.lock, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
blaind committed Oct 24, 2021
1 parent 8d6d9d8 commit 10130e9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target
*.sw*
Cargo.lock
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "webp-animation"
version = "0.3.0"
version = "0.4.0"
authors = ["Mika Vatanen <[email protected]>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand Down
3 changes: 3 additions & 0 deletions examples/decode_animation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ fn main() {
for frame in decoder.into_iter() {
assert_eq!(frame.dimensions(), (400, 400));
assert_eq!(frame.data().len(), 400 * 400 * 4); // w * h * rgba

#[cfg(features = "image")]
assert_eq!(frame.into_image().unwrap().dimensions(), (400, 400));
}
}

0 comments on commit 10130e9

Please sign in to comment.