-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
36 lines (31 loc) · 966 Bytes
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[package]
name = "nsfw"
version = "0.2.0"
description = "A Rust library for detecting NSFW images using a neural network."
edition = "2021"
homepage = "https://github.com/fyko/nsfw"
repository = "https://github.com/fyko/nsfw"
documentation = "https://docs.rs/nsfw"
categories = ["science", "multimedia::images", "multimedia::video"]
keywords = ["tensorflow", "tract", "onnx"]
license = "MIT OR Apache-2.0"
authors = ["Carter Himmel <[email protected]>"]
[dependencies]
image = { version = "0.25.3", default-features = false }
serde = { version = "1.0.213", optional = true, features = ["derive"] }
tract-onnx = "0.21.7"
once_cell = "1.20.2"
[dev-dependencies]
tokio = { version = "1.41.0", features = ["rt-multi-thread", "macros"] }
serde_json = "1.0.132"
[features]
default = ["jpeg", "png", "gif"]
serde = ["dep:serde"]
gif = ["image/gif"]
jpeg = ["image/jpeg"]
png = ["image/png"]
webp = ["image/webp"]
[profile.dev]
opt-level = 3
[profile.test]
opt-level = 3