Skip to content

Commit

Permalink
Gate platform specific import
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlymatthew committed Jan 3, 2025
1 parent 93fd26f commit e455541
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ use std::{collections::BTreeMap, io::Read};
use anyhow::{bail, ensure, Result};
use flate2::read::ZlibDecoder;

use crate::{
crc32::{compute_crc_aarch64, compute_crc_fast},
Chunk, ColorType, Filter, ImageHeader, Png,
};
#[cfg(all(target_arch = "aarch64", target_feature = "crc"))]
use crate::crc32::compute_crc_aarch64;

use crate::{crc32::compute_crc_fast, Chunk, ColorType, Filter, ImageHeader, Png};

#[derive(Debug)]
pub struct Decoder<'a> {
Expand Down

0 comments on commit e455541

Please sign in to comment.