From f868120a5b0adb0d946765e33b12414e9ea154cc Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Wed, 15 Jun 2022 10:09:07 -0500 Subject: [PATCH] Boards are "Clone"able --- Cargo.toml | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 97cec89..35078ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "gamenite" description = "A graph library for board games" -version = "0.1.0" +version = "0.1.1" edition = "2021" license = "GPL-3.0-or-later" homepage = "https://git.danejohnson.org/dane/gamenite" diff --git a/src/lib.rs b/src/lib.rs index a47dbde..1603d5c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,7 +29,7 @@ pub mod io; use serde::{ Serialize, Deserialize }; use std::collections::{ HashMap, HashSet }; -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize, Debug, Clone)] #[serde(default)] /// Configuration options for a [Board] pub struct Config { @@ -127,7 +127,7 @@ impl Node { } } -#[derive(Serialize, Deserialize, Debug, Default)] +#[derive(Serialize, Deserialize, Debug, Default, Clone)] #[serde(default)] /// A graph of [Nodes](Node) and related information ///