# 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 = "tex-packer-core"
version = "0.2.0"
authors = ["Latias94"]
build = false
exclude = [
    "Cargo.toml.orig",
    "tests/*",
    "benches/*",
    "target/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core algorithms and API for packing images into texture atlases (Skyline / MaxRects / Guillotine). Returns pages (RGBA) and metadata (JSON/Plist/templates)."
homepage = "https://github.com/Latias94/tex-packer"
documentation = "https://docs.rs/tex-packer-core"
readme = "README.md"
keywords = [
    "texture",
    "atlas",
    "packer",
    "sprites",
    "bin-packing",
]
categories = [
    "algorithms",
    "multimedia::images",
    "graphics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Latias94/tex-packer"
resolver = "2"

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

[features]
default = ["image"]
image = []
parallel = ["rayon"]

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

[[example]]
name = "bench_mr_reference"
path = "examples/bench_mr_reference.rs"

[dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
]
default-features = true

[dependencies.rayon]
version = "1.10"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.criterion]
version = "0.7"
features = ["html_reports"]

[dev-dependencies.rand]
version = "0.8"
