Boards are "Clone"able

This commit is contained in:
Dane Johnson 2022-06-15 10:09:07 -05:00
parent eee7b37b08
commit f868120a5b
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
[package] [package]
name = "gamenite" name = "gamenite"
description = "A graph library for board games" description = "A graph library for board games"
version = "0.1.0" version = "0.1.1"
edition = "2021" edition = "2021"
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"
homepage = "https://git.danejohnson.org/dane/gamenite" homepage = "https://git.danejohnson.org/dane/gamenite"

View File

@ -29,7 +29,7 @@ pub mod io;
use serde::{ Serialize, Deserialize }; use serde::{ Serialize, Deserialize };
use std::collections::{ HashMap, HashSet }; use std::collections::{ HashMap, HashSet };
#[derive(Serialize, Deserialize, Debug)] #[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(default)] #[serde(default)]
/// Configuration options for a [Board] /// Configuration options for a [Board]
pub struct Config { pub struct Config {
@ -127,7 +127,7 @@ impl Node {
} }
} }
#[derive(Serialize, Deserialize, Debug, Default)] #[derive(Serialize, Deserialize, Debug, Default, Clone)]
#[serde(default)] #[serde(default)]
/// A graph of [Nodes](Node) and related information /// A graph of [Nodes](Node) and related information
/// ///