# 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"
rust-version = "1.93"
name = "ddss"
version = "0.1.3"
authors = ["Chen-Pang He (https://jdh8.org)"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rusty API for ddss, a performance-oriented fork of the DDS double dummy solver for bridge"
homepage = "https://github.com/jdh8/ddss"
documentation = "https://docs.rs/ddss"
readme = "README.md"
keywords = [
    "bridge",
    "double-dummy",
]
categories = ["game-development"]
license = "Apache-2.0"
repository = "https://github.com/jdh8/ddss"

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

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

[[example]]
name = "notrump-tricks"
path = "examples/notrump-tricks/main.rs"

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

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

[dependencies.arrayvec]
version = "0.7"

[dependencies.bitflags]
version = "2"

[dependencies.contract-bridge]
version = "0.1"

[dependencies.ddss-sys]
version = "0.1.1"

[dependencies.parking_lot]
version = "0.12"

[dependencies.semver]
version = "1"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_with]
version = "3"
features = ["macros"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

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

[dev-dependencies.contract-bridge]
version = "0.1"
features = ["rand"]

[dev-dependencies.criterion]
version = "0.8"
features = ["cargo_bench_support"]
default-features = false

[dev-dependencies.rand]
version = "0.10"

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