[[bench]]
name = "baseline"
path = "benches/baseline.rs"
[[bench]]
harness = false
name = "bench"
path = "benches/bench.rs"
[[bench]]
name = "random_hand"
path = "benches/random_hand.rs"
[[bin]]
name = "build-map"
path = "src/bin/build_map/main.rs"
required-features = ["build-map"]
[[bin]]
name = "build-table"
path = "src/bin/build_table.rs"
required-features = ["build-file"]
[build-dependencies.cxx-build]
optional = true
version = "1.0.186"
[dependencies.thiserror]
default-features = false
version = "2.0.17"
[dev-dependencies.criterion]
version = "0.7.0"
[dev-dependencies.cxx]
version = "1.0.186"
[dev-dependencies.rand]
version = "0.9.2"
[dev-dependencies.rand_pcg]
version = "0.9.0"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "necessary_and_unnecessary_tiles"
path = "examples/necessary_and_unnecessary_tiles.rs"
[[example]]
name = "performance"
path = "examples/performance.rs"
[[example]]
name = "three_player"
path = "examples/three_player.rs"
[features]
build-file = []
build-map = ["build-file"]
correctness = ["dep:cxx-build"]
[lib]
name = "xiangting"
path = "src/lib.rs"
[package]
authors = ["Apricot S."]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
categories = ["algorithms", "no-std"]
description = "A library for calculating the deficiency number (a.k.a. xiàngtīng number, 向聴数)."
edition = "2024"
keywords = ["mahjong", "riichi", "shanten", "xiangting"]
license = "MIT"
name = "xiangting"
readme = "README.md"
repository = "https://github.com/Apricot-S/xiangting"
rust-version = "1.85"
version = "5.0.3"
[[test]]
name = "correctness"
path = "tests/correctness.rs"
[[test]]
name = "hand_generator"
path = "tests/hand_generator.rs"
[[test]]
name = "nyanten"
path = "tests/nyanten.rs"