# 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"
rust-version = "1.76"
name = "imageio"
version = "0.4.1"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
    "src/**/*",
    "swift-bridge/Package.swift",
    "swift-bridge/Sources/**/*",
    "examples/**/*",
    "tests/**/*",
    "build.rs",
    "Cargo.toml",
    "README.md",
    "COVERAGE.md",
    "LICENSE-*",
    "CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's ImageIO framework with a Swift bridge, typed property helpers, thumbnails, HEIF/APNG tooling, and optional raw FFI on macOS"
homepage = "https://github.com/doom-fish/imageio-rs"
readme = "README.md"
keywords = [
    "image",
    "png",
    "jpeg",
    "heic",
    "macos",
]
categories = [
    "api-bindings",
    "os::macos-apis",
    "multimedia::images",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/imageio-rs"

[package.metadata.docs.rs]
all-features = true
default-target = "aarch64-apple-darwin"
targets = [
    "aarch64-apple-darwin",
    "x86_64-apple-darwin",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[badges.maintenance]
status = "actively-developed"

[features]
default = []
raw-ffi = []

[lib]
name = "imageio"
crate-type = ["lib"]
path = "src/lib.rs"

[[example]]
name = "01_source_overview"
path = "examples/01_source_overview.rs"

[[example]]
name = "02_destination_roundtrip"
path = "examples/02_destination_roundtrip.rs"

[[example]]
name = "03_properties_view"
path = "examples/03_properties_view.rs"

[[example]]
name = "04_metadata_roundtrip"
path = "examples/04_metadata_roundtrip.rs"

[[example]]
name = "05_auxiliary_data"
path = "examples/05_auxiliary_data.rs"

[[example]]
name = "06_color_sync"
path = "examples/06_color_sync.rs"

[[example]]
name = "07_animated_png"
path = "examples/07_animated_png.rs"

[[example]]
name = "08_heif"
path = "examples/08_heif.rs"

[[example]]
name = "09_proraw"
path = "examples/09_proraw.rs"

[[example]]
name = "10_thumbnail"
path = "examples/10_thumbnail.rs"

[[test]]
name = "animated_png_tests"
path = "tests/animated_png_tests.rs"

[[test]]
name = "api_coverage"
path = "tests/api_coverage.rs"

[[test]]
name = "auxiliary_data_tests"
path = "tests/auxiliary_data_tests.rs"

[[test]]
name = "color_sync_tests"
path = "tests/color_sync_tests.rs"

[[test]]
name = "destination_tests"
path = "tests/destination_tests.rs"

[[test]]
name = "heif_tests"
path = "tests/heif_tests.rs"

[[test]]
name = "metadata_tests"
path = "tests/metadata_tests.rs"

[[test]]
name = "properties_tests"
path = "tests/properties_tests.rs"

[[test]]
name = "proraw_tests"
path = "tests/proraw_tests.rs"

[[test]]
name = "source_tests"
path = "tests/source_tests.rs"

[[test]]
name = "thumbnail_tests"
path = "tests/thumbnail_tests.rs"

[dependencies]

[dev-dependencies.regex-lite]
version = "0.1"

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

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

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

[lints.rust]

[profile.release]
debug = 2
strip = "none"
