# 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.75"
name = "hypercutter"
version = "0.3.0"
build = false
exclude = [
    "tests/",
    "examples/",
    "pkg/",
    ".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Extract data from GBA Pokemon ROMs."
homepage = "https://github.com/cuebitt/hypercutter"
documentation = "https://docs.rs/hypercutter"
readme = "README.md"
keywords = [
    "pokemon",
    "gba",
    "rom",
    "extraction",
    "sprites",
]
categories = [
    "game-development",
    "parser-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/cuebitt/hypercutter"

[package.metadata.wasm-pack.profile.release]
wasm-opt = [
    "-O",
    "--enable-gc",
    "--enable-bulk-memory",
    "--enable-reference-types",
]

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

[[bin]]
name = "hypercutter"
path = "src/bin/hypercutter.rs"

[dependencies.anyhow]
version = "1"

[dependencies.bilge]
version = "0.3"

[dependencies.binrw]
version = "0.15"

[dependencies.log]
version = "0.4"

[dependencies.nintendo_lz]
version = "0.1"
package = "nintendo-lz"

[dependencies.png]
version = "0.17"

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

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "1"

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

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.walkdir]
version = "2"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.clap]
version = "4"
features = ["derive"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.console]
version = "0.15"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.dialoguer]
version = "0.11"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.dirs]
version = "5"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.env_logger]
version = "0.11"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.glob]
version = "0.3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.indicatif]
version = "0.17"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rayon]
version = "1"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ureq]
version = "3"
features = ["rustls"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"

[profile.release.package."*"]
opt-level = 3
