# 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.87"
name = "iconforge"
version = "1.0.3"
authors = ["itsmeow <itsmeow@itsmeow.dev>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Offloaded icon generation functions for BYOND and SS13"
readme = "README.md"
keywords = [
    "dmi",
    "images",
    "sprites",
    "icons",
    "byond",
]
categories = [
    "multimedia::images",
    "game-development",
]
license = "MIT"
repository = "https://github.com/itsmeow/iconforge-rs"

[features]
default = [
    "spritesheet",
    "gags",
]
ffi = []
gags = []
spritesheet = []

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

[[bin]]
name = "iconforge_cli"
path = "src/cli/main.rs"

[[test]]
name = "dm-tests"
path = "tests/dm-tests.rs"

[dependencies.clap]
version = "4.5.42"
features = ["derive"]

[dependencies.dashmap]
version = "6.1"
features = [
    "rayon",
    "serde",
]

[dependencies.dmi]
version = "0.5.0"

[dependencies.flume]
version = "0.11.1"

[dependencies.hex]
version = "0.4.3"

[dependencies.image]
version = "0.25"
features = ["png"]
default-features = false

[dependencies.indexmap]
version = "2.10.0"
features = [
    "serde",
    "rayon",
]

[dependencies.once_cell]
version = "1.21"

[dependencies.ordered-float]
version = "5.0.0"
features = ["serde"]

[dependencies.png]
version = "0.18"

[dependencies.rayon]
version = "1.10"

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

[dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tracy_full]
version = "1.12.0"

[dependencies.twox-hash]
version = "2.1"

[dev-dependencies.regex]
version = "1"

[lints.clippy]
complexity = "warn"
correctness = "warn"
missing_const_for_fn = "warn"
perf = "warn"
style = "warn"
suspicious = "warn"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 2
