From: Ian Jackson Date: Sun, 30 Aug 2020 10:28:15 +0000 (+0100) Subject: add arrayvec X-Git-Tag: otter-0.2.0~1040 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4436aa83b9b981054b42c2740aee4d5af67d0007;p=otter.git add arrayvec --- diff --git a/Cargo.lock.example b/Cargo.lock.example index 8c0cafb2..f92c0963 100644 --- a/Cargo.lock.example +++ b/Cargo.lock.example @@ -91,6 +91,12 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f8ebf5827e4ac4fd5946560e6a99776ea73b596d80898f357007317a7141e47" +[[package]] +name = "arrayvec" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cff77d8686867eceff3105329d4698d96c2391c176d5d03adc90c7389162b5b8" + [[package]] name = "atty" version = "0.2.14" @@ -422,6 +428,7 @@ version = "0.0.1" dependencies = [ "anyhow", "argparse", + "arrayvec", "failure", "fehler", "fs2", diff --git a/Cargo.toml b/Cargo.toml index 80fb3801..dd27710b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,6 +55,8 @@ toml = "0.5" rocket_cors = "0.5" +arrayvec = "0" + #rocket = "0.4" rocket_contrib = { version = "0.4", default-features=false, features=["tera_templates","helmet","json"], git = "file:///home/ian/Rustup/Game/rocket/.git", branch = "Game-rocket-contrib" } diff --git a/src/imports.rs b/src/imports.rs index 04698213..5a87a8e6 100644 --- a/src/imports.rs +++ b/src/imports.rs @@ -65,6 +65,8 @@ pub use fs2::FileExt; pub use lazy_static::lazy_static; pub use regex::Regex; +pub use arrayvec::ArrayVec; + pub use crate::global::*; pub use crate::gamestate::*; pub use crate::pieces::*;