# 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 = "msg_tool"
version = "0.4.0-alpha.3"
build = "build.rs"
exclude = [
    ".github",
    "*.py",
    "AGENTS.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A command-line tool for exporting, importing, packing, and unpacking script files."
readme = "README.md"
license = "GPL-3.0-or-later"
repository = "https://github.com/lifegpc/msg-tool"

[features]
all-arc = [
    "artemis-arc",
    "bgi-arc",
    "cat-system-arc",
    "circus-arc",
    "escude-arc",
    "ex-hibit-arc",
    "hexen-haus-arc",
    "kirikiri-arc",
    "musica-arc",
    "qlie-arc",
    "softpal-arc",
    "yuris-arc",
]
all-audio = [
    "bgi-audio",
    "circus-audio",
]
all-fmt = [
    "all-script",
    "all-img",
    "all-arc",
    "all-audio",
]
all-img = [
    "bgi-img",
    "cat-system-img",
    "circus-img",
    "emote-img",
    "hexen-haus-img",
    "kirikiri-img",
    "qlie-img",
    "softpal-img",
    "will-plus-img",
    "yuris-img",
]
all-script = [
    "artemis",
    "artemis-panmimisoft",
    "bgi",
    "cat-system",
    "circus",
    "entis-gls",
    "escude",
    "ex-hibit",
    "favorite",
    "hexen-haus",
    "kirikiri",
    "musica",
    "qlie",
    "silky",
    "softpal",
    "will-plus",
    "yaneurao",
    "yaneurao-itufuru",
    "yuris",
]
artemis = [
    "dep:stylua",
    "utils-escape",
]
artemis-arc = [
    "artemis",
    "dep:digest-io",
    "msg_tool_macro/artemis-arc",
    "dep:sha1",
]
artemis-panmimisoft = [
    "artemis",
    "dep:rust-ini",
]
audio-flac = [
    "dep:libflac-sys",
    "utils-pcm",
]
bgi = ["fancy-regex"]
bgi-arc = [
    "bgi",
    "dep:rand",
    "utils-bit-stream",
]
bgi-audio = ["bgi"]
bgi-img = [
    "bgi",
    "image",
    "dep:rand",
    "utils-bit-stream",
]
cat-system = [
    "fancy-regex",
    "flate2",
    "dep:int-enum",
]
cat-system-arc = [
    "cat-system",
    "dep:pelite",
    "utils-blowfish",
    "utils-crc32",
]
cat-system-img = [
    "cat-system",
    "flate2",
    "image",
    "mozjpeg",
    "utils-bit-stream",
]
circus = []
circus-arc = ["circus"]
circus-audio = [
    "circus",
    "flate2",
    "dep:int-enum",
    "lossless-audio",
]
circus-img = [
    "circus",
    "image",
    "flate2",
    "zstd",
]
default = [
    "all-fmt",
    "image-jpg",
    "image-jxl",
    "image-webp",
    "audio-flac",
    "jieba",
]
emote-img = [
    "dep:base64",
    "dep:block_compression",
    "emote-psb",
    "image",
    "json",
    "dep:libtlg-rs",
    "dep:url",
    "utils-psd",
]
emote-psb = [
    "dep:emote-psb",
    "dep:adler",
    "dep:lz4",
]
entis-gls = [
    "xml5ever",
    "dep:int-enum",
]
escude = ["dep:int-enum"]
escude-arc = [
    "escude",
    "dep:rand",
    "utils-bit-stream",
]
ex-hibit = []
ex-hibit-arc = ["ex-hibit"]
favorite = ["utils-str"]
hexen-haus = [
    "dep:memchr",
    "utils-str",
]
hexen-haus-arc = ["hexen-haus"]
hexen-haus-img = [
    "hexen-haus",
    "image",
]
image = ["dep:png"]
image-jpg = ["mozjpeg"]
image-jxl = [
    "image",
    "dep:jpegxl-sys",
]
image-webp = ["webp"]
jieba = ["dep:jieba-rs"]
kirikiri = [
    "emote-psb",
    "fancy-regex",
    "flate2",
    "json",
    "dep:lz4",
    "utils-escape",
]
kirikiri-arc = [
    "kirikiri",
    "dep:adler",
    "dep:aes",
    "dep:argon2",
    "dep:base64",
    "dep:blake2",
    "dep:bytes",
    "dep:cbc",
    "dep:chacha20",
    "chacha20/legacy",
    "chacha20/xchacha",
    "dep:fastcdc",
    "flate2",
    "dep:hex",
    "dep:int-enum",
    "dep:libsteamless",
    "dep:md5",
    "dep:memchr",
    "msg_tool_macro/kirikiri-arc",
    "dep:msg_tool_xp3data",
    "dep:parse-size",
    "dep:pelite",
    "serde/rc",
    "dep:sha2",
    "dep:sha3",
    "dep:shake",
    "dep:siphasher",
    "dep:tjs2dec",
    "utils-case-insensitive-string",
    "utils-lzss",
    "utils-serde-base64bytes",
    "utils-simple-pack",
    "zopfli",
    "zstd",
]
kirikiri-img = [
    "kirikiri",
    "image",
    "dep:libtlg-rs",
]
lossless-audio = ["utils-pcm"]
musica = []
musica-arc = [
    "musica",
    "dep:crc32fast",
    "flate2",
    "dep:include-flate",
    "utils-blowfish",
    "utils-rc4",
    "utils-serde-base64bytes",
    "utils-xored-stream",
]
private = [
    "dep:serde",
    "dep:toml",
]
qlie = []
qlie-arc = [
    "qlie",
    "utils-mmx",
    "dep:pelite",
    "dep:rand",
]
qlie-img = [
    "qlie",
    "image",
    "utils-psd",
]
silky = []
softpal = ["dep:int-enum"]
softpal-arc = ["softpal"]
softpal-img = [
    "softpal",
    "image",
]
unstable = [
    "msg_tool_macro/unstable",
    "msg_tool_xp3data?/unstable",
]
utils-bit-stream = []
utils-blowfish = ["dep:byteorder"]
utils-case-insensitive-string = []
utils-crc32 = []
utils-escape = ["fancy-regex"]
utils-lzss = []
utils-mmx = []
utils-murmur2 = []
utils-pcm = []
utils-psd = [
    "image",
    "flate2",
    "utils-bit-stream",
]
utils-rc4 = []
utils-serde-base64bytes = ["dep:base64"]
utils-simple-pack = ["zstd"]
utils-str = []
utils-xored-stream = []
will-plus = ["utils-str"]
will-plus-img = [
    "will-plus",
    "image",
]
xml5ever = [
    "dep:xml5ever",
    "dep:markup5ever",
    "dep:tendril",
    "dep:crossbeam",
]
yaneurao = []
yaneurao-itufuru = [
    "yaneurao",
    "utils-xored-stream",
]
yuris = [
    "dep:chrono",
    "dep:hex",
    "utils-serde-base64bytes",
    "utils-xored-stream",
]
yuris-arc = [
    "yuris",
    "dep:adler",
    "dep:crc32fast",
    "flate2",
    "dep:int-enum",
    "dep:pelite",
    "utils-murmur2",
    "dep:xxhash-rust",
    "xxhash-rust/xxh32",
    "zopfli",
]
yuris-img = [
    "yuris",
    "image",
    "qoi",
    "webp",
]
zig = [
    "all-fmt",
    "image-jpg",
    "image-webp",
    "audio-flac",
    "jieba",
]

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

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

[dependencies.adler]
version = "1"
optional = true

[dependencies.aes]
version = "0.9"
optional = true

[dependencies.anyhow]
version = "1"

[dependencies.argon2]
version = "0.5"
optional = true

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.blake2]
version = "0.10"
optional = true

[dependencies.block_compression]
version = "0.9"
features = ["bc7"]
optional = true
default-features = false

[dependencies.byteorder]
version = "1.5"
optional = true
default-features = false

[dependencies.bytes]
version = "1.11"
optional = true

[dependencies.cbc]
version = "0.2"
optional = true

[dependencies.chacha20]
version = "0.10"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]
optional = true

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

[dependencies.crc32fast]
version = "1.5"
optional = true

[dependencies.crossbeam]
version = "0.8"
optional = true

[dependencies.csv]
version = "1.3"

[dependencies.ctrlc]
version = "3.4"

[dependencies.digest-io]
version = "0.1"
optional = true

[dependencies.emote-psb]
version = "0.5"
features = ["serde"]
optional = true

[dependencies.encoding]
version = "0.2"

[dependencies.fancy-regex]
version = "0.18"
optional = true

[dependencies.fastcdc]
version = "4.0"
optional = true

[dependencies.flate2]
version = "1.1"
optional = true

[dependencies.hex]
version = "0.4"
optional = true

[dependencies.include-flate]
version = "0.3"
optional = true

[dependencies.int-enum]
version = "1.2"
optional = true

[dependencies.jieba-rs]
version = "0.10"
optional = true

[dependencies.jpegxl-sys]
version = "0.11"
features = ["vendored"]
optional = true
package = "msg-tool-jpegxl-sys"

[dependencies.json]
version = "0.12"
optional = true

[dependencies.lazy_static]
version = "1.5.0"

[dependencies.libflac-sys]
version = "0.3"
optional = true

[dependencies.libsteamless]
version = "0.1"
optional = true

[dependencies.libtlg-rs]
version = "0.2"
features = ["encode"]
optional = true

[dependencies.lz4]
version = "1.28"
optional = true

[dependencies.markup5ever]
version = "0.38"
optional = true

[dependencies.md5]
version = "0.8"
optional = true

[dependencies.memchr]
version = "2.7"
optional = true

[dependencies.mozjpeg]
version = "0.10"
optional = true

[dependencies.msg_tool_macro]
version = "0.4.0-alpha.1"

[dependencies.msg_tool_xp3data]
version = "0.4.0-alpha.3"
optional = true

[dependencies.num_cpus]
version = "1.17"

[dependencies.overf]
version = "0.1"

[dependencies.parse-size]
version = "1.1"
optional = true

[dependencies.pelite]
version = "0.10"
optional = true

[dependencies.png]
version = "0.18"
optional = true

[dependencies.qoi]
version = "0.4"
optional = true

[dependencies.rand]
version = "0.10"
optional = true

[dependencies.rust-ini]
version = "0.21"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml_ng]
version = "0.10"

[dependencies.sha1]
version = "0.11"
optional = true

[dependencies.sha2]
version = "0.11"
optional = true

[dependencies.sha3]
version = "0.12"
optional = true

[dependencies.shake]
version = "0.1"
optional = true

[dependencies.siphasher]
version = "1.0"
optional = true

[dependencies.stylua]
version = "2.1"
optional = true
default-features = false

[dependencies.tendril]
version = "0.5"
optional = true

[dependencies.tjs2dec]
version = "0.4"
optional = true

[dependencies.unicode-segmentation]
version = "1.12"

[dependencies.url]
version = "2.5"
optional = true

[dependencies.utf16string]
version = "0.2"

[dependencies.webp]
version = "0.3"
optional = true
default-features = false

[dependencies.xml5ever]
version = "0.38"
optional = true

[dependencies.xxhash-rust]
version = "0.8"
optional = true

[dependencies.zopfli]
version = "0.8"
optional = true

[dependencies.zstd]
version = "0.13"
optional = true

[build-dependencies.parse-size]
version = "1.1"

[build-dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[build-dependencies.toml]
version = "1.1"
optional = true

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Globalization",
    "Win32_System_Diagnostics_Debug",
]
