From 611dd03acf7c680a0360ebbe73c16685b8213fe5 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Mon, 29 Mar 2021 13:55:16 +0000 Subject: [PATCH] cargo things --- Cargo.lock | 31 ++----------------------------- Cargo.toml | 9 ++++++--- src/main.rs | 1 - 3 files changed, 8 insertions(+), 33 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b139cbe..f9d9e7f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -82,19 +82,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" -[[package]] -name = "chrono" -version = "0.4.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" -dependencies = [ - "libc", - "num-integer", - "num-traits", - "time", - "winapi", -] - [[package]] name = "clap" version = "2.33.3" @@ -500,7 +487,6 @@ checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" name = "physarum" version = "0.1.0" dependencies = [ - "chrono", "criterion", "image", "indicatif", @@ -627,8 +613,7 @@ dependencies = [ [[package]] name = "rayon" version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b0d8e0819fadc20c74ea8373106ead0600e3a67ef1fe8da56e39b9ae7275674" +source = "git+https://github.com/rayon-rs/rayon.git#385840e67c98ac9f9121151709e5826c49ca30ea" dependencies = [ "autocfg", "crossbeam-deque", @@ -639,8 +624,7 @@ dependencies = [ [[package]] name = "rayon-core" version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ab346ac5921dc62ffa9f89b7a773907511cdfa5490c572ae9be1be33e8afa4a" +source = "git+https://github.com/rayon-rs/rayon.git#385840e67c98ac9f9121151709e5826c49ca30ea" dependencies = [ "crossbeam-channel", "crossbeam-deque", @@ -803,17 +787,6 @@ dependencies = [ "weezl", ] -[[package]] -name = "time" -version = "0.1.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" -dependencies = [ - "libc", - "wasi", - "winapi", -] - [[package]] name = "tinytemplate" version = "1.2.1" diff --git a/Cargo.toml b/Cargo.toml index f5341fd..9dfdc2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,16 +5,19 @@ authors = ["mindv0rtex ", "Simon Gardling < edition = "2018" [dependencies] -chrono = "0.4.19" image = "0.23.14" indicatif = {version = "0.15.0", features = ["rayon"]} itertools = "0.10" rand = "0.8.3" rand_distr = "0.4" -rayon = "1.5" +#rayon = "1.5" +rayon = {git = "https://github.com/rayon-rs/rayon.git"} [dev-dependencies] -criterion = "0.3" +criterion = "0.3.4" + +[patch.crates-io] +rayon = {git = "https://github.com/rayon-rs/rayon.git"} #for using git version of rayon [[bench]] name = "trig" diff --git a/src/main.rs b/src/main.rs index e47cb2f..a85d214 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,3 @@ -use chrono::{DateTime, Utc}; use indicatif::{ProgressBar, ProgressStyle}; use physarum::model; use rand::Rng;