[dependencies.hashbrown]
features = ["alloc", "core"]
optional = true
version = "0.16.1"
[dependencies.libm]
optional = true
version = "0.2"
[dependencies.rand]
default-features = false
features = ["alloc"]
version = "0.9"
[dependencies.rand_chacha]
default-features = false
version = "0.9"
[dependencies.spin]
optional = true
version = "0.10"
[dependencies.thiserror]
default-features = false
version = "2.0"
[[example]]
name = "cli_blackjack"
path = "examples/cli_blackjack.rs"
[features]
alloc = ["dep:hashbrown", "dep:spin", "dep:libm"]
default = ["std"]
std = ["rand/std", "rand_chacha/std", "thiserror/std"]
[lib]
name = "bjrs"
path = "src/lib.rs"
[lints.clippy]
allow_attributes = "deny"
cast_possible_truncation = "allow"
cast_sign_loss = "allow"
std_instead_of_alloc = "deny"
std_instead_of_core = "deny"
struct_excessive_bools = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
unused_self = "allow"
unwrap_used = "warn"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["games", "no-std"]
description = "A blackjack game engine with optional no_std support."
edition = "2024"
homepage = "https://github.com/waki285/bjrs"
include = ["src/**", "examples/**", "tests/**", "Cargo.toml", "README.md", "LICENSE*"]
keywords = ["blackjack", "cards", "game", "casino", "no-std"]
license = "MIT OR Apache-2.0"
name = "bjrs"
readme = "README.md"
repository = "https://github.com/waki285/bjrs"
rust-version = "1.86"
version = "0.1.1"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "game"
path = "tests/game.rs"