Skip to content

Commit

Permalink
feat: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyko committed Aug 1, 2024
1 parent 38e44f2 commit 4fac91d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nsfw"
version = "0.1.1"
version = "0.2.0"
description = "A Rust library for detecting NSFW images using a neural network."
edition = "2021"
homepage = "https://github.com/fyko/nsfw"
Expand All @@ -12,17 +12,17 @@ license = "MIT OR Apache-2.0"
authors = ["Carter Himmel <[email protected]>"]

[dependencies]
image = { version = "0.24.9", default-features = false }
serde = { version = "1.0.197", optional = true, features = ["derive"] }
tract-onnx = "0.21.1"
image = { version = "0.25.2", default-features = false }
serde = { version = "1.0.204", optional = true, features = ["derive"] }
tract-onnx = "0.21.6"
once_cell = "1.19.0"

[dev-dependencies]
tokio = { version = "1.36.0", features = ["rt-multi-thread", "macros"] }
serde_json = "1.0.114"
tokio = { version = "1.39.2", features = ["rt-multi-thread", "macros"] }
serde_json = "1.0.122"

[features]
default = ["jpeg", "png"]
default = ["jpeg", "png", "gif"]
serde = ["dep:serde"]
gif = ["image/gif"]
jpeg = ["image/jpeg"]
Expand Down
4 changes: 2 additions & 2 deletions src/gif.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::io::Read;
use std::io::{BufRead, Seek};

use image::{codecs::gif::GifDecoder, AnimationDecoder};

Expand Down Expand Up @@ -28,7 +28,7 @@ pub struct GifParser<'a> {
}

impl<'a> GifParser<'a> {
pub fn new<R: Read + 'a>(gif: GifDecoder<R>, model: &'a Model) -> Self {
pub fn new<R: BufRead + Seek + 'a>(gif: GifDecoder<R>, model: &'a Model) -> Self {
let frames = gif.into_frames();

Self { frames, model }
Expand Down

0 comments on commit 4fac91d

Please sign in to comment.