# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "nsfw" version = "0.2.0" authors = ["Carter Himmel "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A Rust library for detecting NSFW images using a neural network." homepage = "https://github.com/fyko/nsfw" documentation = "https://docs.rs/nsfw" readme = "README.md" keywords = [ "tensorflow", "tract", "onnx", ] categories = [ "science", "multimedia::images", "multimedia::video", ] license = "MIT OR Apache-2.0" repository = "https://github.com/fyko/nsfw" [profile.dev] opt-level = 3 [profile.test] opt-level = 3 [lib] name = "nsfw" path = "src/lib.rs" [dependencies.image] version = "0.25.2" default-features = false [dependencies.once_cell] version = "1.19.0" [dependencies.serde] version = "1.0.204" features = ["derive"] optional = true [dependencies.tract-onnx] version = "0.21.6" [dev-dependencies.serde_json] version = "1.0.122" [dev-dependencies.tokio] version = "1.39.2" features = [ "rt-multi-thread", "macros", ] [features] default = [ "jpeg", "png", "gif", ] gif = ["image/gif"] jpeg = ["image/jpeg"] png = ["image/png"] serde = ["dep:serde"] webp = ["image/webp"]