# 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"
name = "bg3rustpaklib"
version = "0.1.3"
authors = ["bg3rustpaklib contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library for reading and extracting Baldur's Gate 3 PAK files"
readme = "README.md"
keywords = [
    "baldurs-gate-3",
    "bg3",
    "pak",
    "lspk",
    "modding",
]
categories = [
    "parsing",
    "game-development",
]
license = "MIT"
repository = "https://github.com/defakof/bg3rustpaklib"

[package.metadata.docs.rs]
features = [
    "async",
    "regex",
]

[features]
async = ["tokio"]
default = []
regex = ["dep:regex"]

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

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

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

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

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

[[test]]
name = "comprehensive_tests"
path = "tests/comprehensive_tests.rs"

[[test]]
name = "pak_integration_tests"
path = "tests/pak_integration_tests.rs"

[dependencies.flate2]
version = "1.0"
features = ["zlib-ng"]
default-features = false

[dependencies.globset]
version = "0.4"

[dependencies.lz4_flex]
version = "0.11"

[dependencies.md5]
version = "0.7"

[dependencies.memmap2]
version = "0.9"

[dependencies.rayon]
version = "1.10"

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

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "fs",
    "io-util",
    "sync",
    "rt",
]
optional = true

[dependencies.zstd]
version = "0.13"

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

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"

[profile.release.build-override]
opt-level = 3
