diff --git a/benches/internal.rs b/benches/internal.rs index 406c4c2..5dd84c0 100644 --- a/benches/internal.rs +++ b/benches/internal.rs @@ -1,7 +1,8 @@ -extern crate bevy_rand; +use bevy_rand::BENCH; fn main() { + // MacOS workaround T___T + let _ = BENCH; + divan::main(); } - - diff --git a/src/lib.rs b/src/lib.rs index 506e629..61552a5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,3 +18,7 @@ mod thread_local_entropy; pub mod traits; #[cfg(doc)] pub mod tutorial; + +#[cfg(feature = "internal_benchmarks")] +/// Only for benches +pub const BENCH: bool = true;