feat(klondike): add optional serde feature for instruction/pile serialization

Adds serde Serialize/Deserialize derives (behind the `serde` feature flag)
to Tableau, Foundation, KlondikePile, SkipCards, TableauStack,
KlondikePileStack, DstFoundation, DstTableau, and KlondikeInstruction.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
funman300
2026-06-08 11:20:39 -07:00
parent 2eaa99e82d
commit 99b49e629e
2 changed files with 13 additions and 0 deletions
+4
View File
@@ -3,9 +3,13 @@ name = "klondike"
version = "0.3.0"
edition = "2024"
[features]
serde = ["dep:serde"]
[dependencies]
card_game.workspace = true
rand = { version = "0.10.1", default-features = false, features = ["std_rng"] }
serde = { version = "1", optional = true, default-features = false, features = ["derive"] }
[lints]
workspace = true