# 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"
name = "eozin"
version = "0.1.0-alpha.1"
authors = ["Yuji Ota <yujota.oss@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pure-Rust decoder library for digital pathology"
homepage = "https://github.com/yujota/eozin"
readme = "README.md"
keywords = [
    "pathology",
    "image-decoder",
    "wasm",
    "medical",
]
categories = [
    "science::bioinformatics",
    "wasm",
    "multimedia::images",
]
license = "BSD-3-Clause"
repository = "https://github.com/yujota/eozin"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["std-io"]
image = [
    "jp2k",
    "dep:image",
]
jp2k = [
    "dep:hayro-jpeg2000",
    "dep:image",
]
std-io = []
wasm-node = [
    "dep:wasm-bindgen-futures",
    "dep:wasm-bindgen",
    "dep:js-sys",
    "dep:serde",
    "dep:tsify",
    "jp2k",
    "image",
]
wasm-web = [
    "jp2k",
    "image",
    "dep:web-sys",
    "dep:wasm-bindgen-futures",
    "dep:wasm-bindgen",
    "dep:js-sys",
    "dep:serde",
    "dep:tsify",
]

[lib]
name = "eozin"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[dependencies.hayro-jpeg2000]
version = "^0.3.4"
optional = true

[dependencies.image]
version = "^0.25.10"
optional = true

[dependencies.js-sys]
version = "^0.3.91"
optional = true

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

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tsify]
version = "^0.5.6"
optional = true

[dependencies.wasm-bindgen]
version = "^0.2.114"
optional = true

[dependencies.wasm-bindgen-futures]
version = "^0.4.64"
optional = true

[dependencies.web-sys]
version = "^0.3.91"
features = [
    "Blob",
    "BlobPropertyBag",
    "console",
    "ImageData",
    "File",
]
optional = true

[dev-dependencies.reqwest]
version = "^0.13.2"
features = ["blocking"]

[dev-dependencies.serde]
version = "^1.0"
features = ["derive"]

[dev-dependencies.toml]
version = "1.1.1"
