# 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 = "riichienv-core"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Japanese Mahjong (Riichi) game engine with MJAI protocol support"
readme = "README.md"
keywords = [
    "mahjong",
    "riichi",
    "mjai",
    "game-engine",
]
categories = [
    "game-engines",
    "simulation",
]
license = "Apache-2.0"
repository = "https://github.com/smly/RiichiEnv"
resolver = "2"

[features]
default = ["dep:flate2"]
python = [
    "dep:pyo3",
    "dep:flate2",
]
wasm = []

[lib]
name = "riichienv_core"
crate-type = ["rlib"]
path = "src/lib.rs"

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

[[bench]]
name = "agari_bench"
path = "benches/agari_bench.rs"
harness = false

[dependencies.base64]
version = "0.22"

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

[dependencies.hex]
version = "0.4"

[dependencies.ndarray]
version = "0.17"

[dependencies.pyo3]
version = "0.28"
optional = true

[dependencies.rand]
version = "0.10"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

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