# 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 = "spades"
version = "1.2.8"
authors = ["William <limwilliam23@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A popular four person card game implemented in Rust."
readme = "README.md"
keywords = [
    "spades",
    "cards",
    "state",
    "machine",
]
categories = [
    "games",
    "game-engines",
    "simulation",
]
license = "MIT"
repository = "https://github.com/wlim33/rust-spades"

[badges.travis-ci]
branch = "master"
repository = "wlim33/rust-spades"

[features]
default = []
server = [
    "tokio",
    "axum",
    "tower",
    "tower-http",
    "tokio-stream",
    "futures-util",
    "async-stream",
    "rusqlite",
    "rustrict",
    "tower-sessions",
    "tower-sessions-sqlx-store",
    "time",
    "oasgen",
]

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

[[bin]]
name = "spades-server"
path = "src/bin/server.rs"
required-features = ["server"]

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

[dependencies.async-stream]
version = "0.3"
optional = true

[dependencies.axum]
version = "0.8"
features = ["ws"]
optional = true

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.oasgen]
version = "0.25"
features = [
    "axum",
    "uuid",
    "swagger-ui",
]
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]
optional = true

[dependencies.rustrict]
version = "0.7"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sqids]
version = "0.4"

[dependencies.time]
version = "0.3"
optional = true

[dependencies.tokio]
version = "1.0"
features = ["full"]
optional = true

[dependencies.tokio-stream]
version = "0.1"
optional = true

[dependencies.tower]
version = "0.5"
optional = true

[dependencies.tower-http]
version = "0.6"
features = ["cors"]
optional = true

[dependencies.tower-sessions]
version = "0.14"
optional = true

[dependencies.tower-sessions-sqlx-store]
version = "0.15"
features = ["sqlite"]
optional = true

[dependencies.uuid]
version = "1.18"
features = [
    "v4",
    "serde",
]

[dev-dependencies.axum-test]
version = "18"

[dev-dependencies.ntest]
version = "0.9"
