From: Ian Jackson Date: Sat, 26 Sep 2020 22:30:48 +0000 (+0100) Subject: itertools X-Git-Tag: otter-0.2.0~878 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b2b989c8f53b10a8720f4e190a929087ff0d8f71;p=otter.git itertools Signed-off-by: Ian Jackson --- diff --git a/Cargo.lock.example b/Cargo.lock.example index b036a113..5e0891c8 100644 --- a/Cargo.lock.example +++ b/Cargo.lock.example @@ -379,6 +379,12 @@ dependencies = [ "generic-array", ] +[[package]] +name = "either" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd56b59865bce947ac5958779cfa508f6c3b9497cc762b7e24a12d11ccde2c4f" + [[package]] name = "erased-serde" version = "0.3.12" @@ -800,6 +806,15 @@ dependencies = [ "libc", ] +[[package]] +name = "itertools" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b" +dependencies = [ + "either", +] + [[package]] name = "itoa" version = "0.4.6" @@ -1074,6 +1089,7 @@ dependencies = [ "htmlescape", "index_vec", "inventory", + "itertools", "lazy_static", "log 0.4.11", "nix", diff --git a/Cargo.toml b/Cargo.toml index b893af65..f15db129 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,8 @@ thiserror = "1" usvg = "0.11" +itertools = "0.9" + rand = "0" regex = "1" diff --git a/src/imports.rs b/src/imports.rs index 2c4cb0cd..f48b3d38 100644 --- a/src/imports.rs +++ b/src/imports.rs @@ -88,6 +88,8 @@ pub use hashlink::LinkedHashMap; pub use delegate::delegate; +pub use itertools::Itertools; + pub use crate::global::*; pub use crate::gamestate::*; pub use crate::pieces::*;