[package]
edition = "2024"
rust-version = "1.85"
name = "cardpack"
version = "0.8.1"
authors = ["electronicpanopticon <gaoler@electronicpanopticon.com>"]
build = false
include = [
"src/**",
"Cargo.toml",
"LICENSE",
"README.md",
"src/basic/decks/yaml/*.yaml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generic Deck of Cards"
homepage = "https://github.com/ImperialBower/cardpack.rs"
readme = "README.md"
keywords = [
"poker",
"cards",
"library",
]
categories = ["game-development"]
license = "Apache-2.0"
repository = "https://github.com/ImperialBower/cardpack.rs.git"
[package.metadata.docs.rs]
all-features = true
[features]
alloc = ["serde?/alloc"]
colored-display = [
"std",
"dep:colored",
]
default = []
full = [
"std",
"i18n",
"colored-display",
"yaml",
"serde",
]
funky = ["std"]
i18n = [
"std",
"dep:fluent-templates",
]
serde = [
"dep:serde",
"alloc",
]
std = [
"alloc",
"rand/std",
"rand/thread_rng",
"serde?/std",
"log/std",
]
std-io = [
"std",
"yaml",
]
yaml = [
"std",
"dep:serde_norway",
"serde",
]
[lib]
name = "cardpack"
path = "src/lib.rs"
[dependencies.colored]
version = "3.1"
optional = true
[dependencies.fluent-templates]
version = "0.13"
optional = true
[dependencies.itertools]
version = "0.15.0"
features = ["use_alloc"]
default-features = false
[dependencies.log]
version = "0.4.29"
default-features = false
[dependencies.rand]
version = "0.9"
features = ["std_rng"]
default-features = false
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true
default-features = false
[dependencies.serde_norway]
version = "0.9.42"
optional = true
[dependencies.thiserror]
version = "2.0.18"
default-features = false
[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "none")))'.dev-dependencies.criterion]
version = "0.7"
[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "none")))'.dev-dependencies.proptest]
version = "1"
[target.'cfg(not(target_os = "none"))'.dev-dependencies.ckc-rs]
version = "0.1.15"
[target.'cfg(not(target_os = "none"))'.dev-dependencies.clap]
version = "4.5"
features = [
"derive",
"unicode",
]
[target.'cfg(not(target_os = "none"))'.dev-dependencies.env_logger]
version = "0.11"
[target.'cfg(not(target_os = "none"))'.dev-dependencies.rstest]
version = "0.25"
[target.'cfg(not(target_os = "none"))'.dev-dependencies.serde_json]
version = "1"
[target.'cfg(not(target_os = "none"))'.dev-dependencies.term-table]
version = "1.4.0"
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"