# 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 = "2024"
rust-version = "1.85"
name = "scivex-image"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Scivex — Image loading, transforms, and filters"
homepage = "https://github.com/scivex/scivex"
readme = "README.md"
keywords = [
    "image-processing",
    "computer-vision",
    "filters",
    "transforms",
    "scientific-computing",
]
categories = [
    "science",
    "multimedia::images",
]
license = "MIT"
repository = "https://github.com/scivex/scivex"

[features]
default = []
jpeg = [
    "dep:jpeg-decoder",
    "dep:jpeg-encoder",
]
png = ["dep:png"]
serde-support = [
    "dep:serde",
    "scivex-core/serde-support",
]

[lib]
name = "scivex_image"
path = "src/lib.rs"

[dependencies.jpeg-decoder]
version = "0.3"
optional = true

[dependencies.jpeg-encoder]
version = "0.6"
optional = true

[dependencies.png]
version = "0.17"
optional = true

[dependencies.scivex-core]
version = "0.1.1"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
many_single_char_names = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_op_in_unsafe_fn = "deny"
