[package]
name = "ddss"
version = "0.1.3"
authors = ["Chen-Pang He (https://jdh8.org)"]
edition = "2024"
rust-version = "1.93"
description = "Rusty API for ddss, a performance-oriented fork of the DDS double dummy solver for bridge"
repository = "https://github.com/jdh8/ddss"
homepage = "https://github.com/jdh8/ddss"
documentation = "https://docs.rs/ddss"
readme = "README.md"
license = "Apache-2.0"
categories = ["game-development"]
keywords = ["bridge", "double-dummy"]

[features]
serde = ["dep:serde", "dep:serde_with", "arrayvec/serde", "bitflags/serde", "contract-bridge/serde", "semver/serde"]

[dependencies]
arrayvec = "0.7"
bitflags = "2"
contract-bridge = "0.1"
ddss-sys = "0.1.1"
parking_lot = "0.12"
semver = "1"
serde = { version = "1", features = ["derive"], optional = true }
serde_with = { version = "3", default-features = false, features = ["macros"], optional = true }
thiserror = "2"

[dev-dependencies]
anyhow = "1"
contract-bridge = { version = "0.1", features = ["rand"] }
criterion = { version = "0.8", default-features = false, features = ["cargo_bench_support"] }
rand = "0.10"

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

[profile.dev.package."*"]
opt-level = 2
