Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
lib: Prevent use of unsafe except when using platform specific intr…
Browse files Browse the repository at this point in the history
…insics (under feature flag `x86`)
  • Loading branch information
etemesi254 committed Jun 15, 2022
1 parent 7496ae8 commit 732a61b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,13 @@
clippy::missing_errors_doc,
clippy::panic
)]
//#![deny(missing_docs)]
#![cfg_attr(not(feature = "x86"), forbid(unsafe_code))]

#[macro_use]
extern crate log;

pub use crate::decoder::Decoder;
pub use crate::decoder::{Decoder, ImageInfo};
pub use crate::misc::ColorSpace;
pub use crate::decoder::ImageInfo;

mod bitstream;
mod color_convert;
Expand Down

0 comments on commit 732a61b

Please sign in to comment.