Skip to content

Commit

Permalink
Re-add wasm_bindgen attribute that was mistakenly removed
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon authored and shssoichiro committed Mar 10, 2024
1 parent 7eb09fc commit 0afb587
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pixel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#[cfg(feature = "serialize")]
use serde::{Serialize, Deserialize};

#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
use wasm_bindgen::prelude::*;

use num_traits::{AsPrimitive, FromPrimitive, PrimInt, Signed};

use std::fmt;
Expand Down Expand Up @@ -147,6 +150,7 @@ impl Coefficient for i32 {
/// Chroma subsampling format
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq)]
#[cfg_attr(feature = "serialize", derive(Serialize, Deserialize))]
#[cfg_attr(all(target_arch = "wasm32", target_os = "unknown"), wasm_bindgen)]
#[repr(C)]
pub enum ChromaSampling {
/// Both vertically and horizontally subsampled.
Expand Down

0 comments on commit 0afb587

Please sign in to comment.