[package]
name = "riichienv-core"
version = "0.4.0"
edition = "2024"
license = "Apache-2.0"
description = "Japanese Mahjong (Riichi) game engine with MJAI protocol support"
repository = "https://github.com/smly/RiichiEnv"
keywords = ["mahjong", "riichi", "mjai", "game-engine"]
categories = ["game-engines", "simulation"]

[lib]
crate-type = ["rlib"]

[dependencies]
pyo3 = { version = "0.28", optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
flate2 = { version = "1.0", optional = true }
rand = "0.10"
sha2 = "0.10"
hex = "0.4"
ndarray = "0.17"
base64 = "0.22"

[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }

[[bench]]
name = "agari_bench"
harness = false

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