diff --git a/Cargo.toml b/Cargo.toml index 641d73f..30873da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,12 +12,9 @@ name = "parabole" path = "examples/parabole.rs" [dev-dependencies] -rand = "0.4" criterion = "0.2" +rand = "0.6" [[bench]] name = "parabole" harness = false - -[profile.release] -lto = true diff --git a/examples/parabole.rs b/examples/parabole.rs index 00ac31b..e6f5b56 100644 --- a/examples/parabole.rs +++ b/examples/parabole.rs @@ -1,10 +1,9 @@ use std::cmp::Ordering; +use genetisk::{Individual, Simulation, Wrapper}; use rand::distributions::{IndependentSample, Range}; use rayon::prelude::*; -use genetisk::{Individual, Simulation, Wrapper}; - #[derive(Clone, Copy, Debug)] struct Fitness(f64); diff --git a/src/lib.rs b/src/lib.rs index c8a7ffa..102fce2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ use rayon::prelude::*; + pub trait Individual: Send { type Fitness: Send + Ord;