Skip to content

Commit 1aace07

Browse files
author
HeroicKatora
authored
Merge pull request #261 from image-rs/ci-wasm-and-issues
Ci wasm and issues
2 parents 424c344 + f911dde commit 1aace07

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/rust.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ jobs:
8181
- name: Install wasm-bindgen
8282
run: >
8383
curl -L "$WASMBINDGEN_UPSTREAM"
84-
| tar xzf - --strip-components=1 wasm-bindgen-0.2.80-x86_64-unknown-linux-musl/wasm-bindgen-test-runner
84+
| tar xzf - --strip-components=1 wasm-bindgen-0.2.82-x86_64-unknown-linux-musl/wasm-bindgen-test-runner
8585
&& sudo mv wasm-bindgen-test-runner /usr/bin/wasm-bindgen-test-runner
8686
env:
87-
WASMBINDGEN_UPSTREAM: https://github.com/rustwasm/wasm-bindgen/releases/download/0.2.80/wasm-bindgen-0.2.80-x86_64-unknown-linux-musl.tar.gz
87+
WASMBINDGEN_UPSTREAM: https://github.com/rustwasm/wasm-bindgen/releases/download/0.2.82/wasm-bindgen-0.2.82-x86_64-unknown-linux-musl.tar.gz
8888
- name: Installing Rust toolchain
8989
uses: actions-rs/toolchain@v1
9090
with:
@@ -93,6 +93,9 @@ jobs:
9393
target: wasm32-unknown-unknown
9494
- uses: actions/checkout@v2
9595
- name: Test
96-
run: cargo test -vv --target wasm32-unknown-unknown
96+
run: |
97+
cargo update
98+
cargo update -p wasm-bindgen --precise 0.2.82
99+
cargo test -vv --target wasm32-unknown-unknown
97100
env:
98101
CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER: wasm-bindgen-test-runner

examples/decode.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ fn main() {
2121
let mut data = decoder.decode().expect("Decoding failed. If other software can successfully decode the specified JPEG image, then it's likely that there is a bug in jpeg-decoder");
2222
let info = decoder.info().unwrap();
2323

24+
eprintln!("{:?}", info);
25+
eprintln!("Exif: {}", decoder.exif_data().is_some());
26+
eprintln!("ICC: {}", decoder.icc_profile().is_some());
27+
2428
let output_file = File::create(output_path).unwrap();
2529
let mut encoder = png::Encoder::new(output_file, info.width as u32, info.height as u32);
2630

0 commit comments

Comments
 (0)