[package]
edition = "2024"
name = "image-ndarray"
version = "0.1.7"
authors = ["olivebowl <olivebowl@noreply.codeberg.org>"]
build = false
include = [
"src/**",
"tests/**",
"Cargo.toml",
"README.md",
"LICENSE",
"CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-copy implementations for the Image crate to convert to and from ndarrays"
documentation = "https://docs.rs/image-ndarray"
readme = "README.md"
keywords = [
"image-processing",
"array",
]
categories = [
"multimedia",
"graphics",
"data-structures",
]
license = "EUPL-1.2"
repository = "https://github.com/opendefocus/opendefocus"
resolver = "2"
[features]
default = ["image"]
image = [
"std",
"dep:image",
"ndarray/std",
]
std = ["thiserror/std"]
[lib]
name = "image_ndarray"
path = "src/lib.rs"
[[test]]
name = "conversions"
path = "tests/conversions.rs"
[dependencies.image]
version = "0.25.10"
optional = true
default-features = false
[dependencies.ndarray]
version = "0.17.2"
default-features = false
[dependencies.num-traits]
version = "0.2.19"
default-features = false
[dependencies.thiserror]
version = "2.0.21"
default-features = false
[dev-dependencies.rstest]
version = "0.28.0"
default-features = false
[lints.clippy]
allow_attributes_without_reason = "warn"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_ref_ptr = "warn"
cognitive_complexity = "warn"
dbg_macro = "warn"
excessive_nesting = "warn"
expect_used = "warn"
large_enum_variant = "allow"
let_underscore_must_use = "warn"
missing_docs_in_private_items = "warn"
missing_transmute_annotations = "allow"
needless_pass_by_ref_mut = "warn"
needless_range_loop = "allow"
redundant_clone = "warn"
similar_names = "allow"
todo = "warn"
too_many_lines = "warn"
type_complexity = "allow"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unreadable_literal = "allow"
unwrap_used = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"