@@ -46,6 +46,7 @@ use core::marker::PhantomData;
4646/// }
4747///
4848/// // uses rayon-core ThreadPool with 8 threads
49+ /// #[cfg(not(miri))]
4950/// #[cfg(feature = "rayon-core")]
5051/// {
5152/// let pool = rayon_core::ThreadPoolBuilder::new()
@@ -57,6 +58,7 @@ use core::marker::PhantomData;
5758/// }
5859///
5960/// // uses scoped-pool Pool with 8 threads
61+ /// #[cfg(not(miri))]
6062/// #[cfg(feature = "scoped-pool")]
6163/// {
6264/// let pool = scoped_pool::Pool::new(8);
@@ -65,6 +67,7 @@ use core::marker::PhantomData;
6567/// }
6668///
6769/// // uses scoped_threadpool Pool with 8 threads
70+ /// #[cfg(not(miri))]
6871/// #[cfg(feature = "scoped_threadpool")]
6972/// {
7073/// let mut pool = scoped_threadpool::Pool::new(8);
@@ -73,6 +76,7 @@ use core::marker::PhantomData;
7376/// }
7477///
7578/// // uses yastl Pool wrapped as YastlPool with 8 threads
79+ /// #[cfg(not(miri))]
7680/// #[cfg(feature = "yastl")]
7781/// {
7882/// let pool = YastlPool::new(8);
@@ -81,6 +85,7 @@ use core::marker::PhantomData;
8185/// }
8286///
8387/// // uses pond Pool wrapped as PondPool with 8 threads
88+ /// #[cfg(not(miri))]
8489/// #[cfg(feature = "pond")]
8590/// {
8691/// let mut pool = PondPool::new_threads_unbounded(8);
@@ -89,6 +94,7 @@ use core::marker::PhantomData;
8994/// }
9095///
9196/// // uses poolite Pool with 8 threads
97+ /// #[cfg(not(miri))]
9298/// #[cfg(feature = "poolite")]
9399/// {
94100/// let pool = poolite::Pool::with_builder(poolite::Builder::new().min(8).max(8)).unwrap();
@@ -153,6 +159,7 @@ where
153159 /// let vec: Vec<_> = (0..42).collect();
154160 /// let input = vec.as_slice();
155161 ///
162+ /// #[cfg(not(miri))]
156163 /// #[cfg(feature = "rayon-core")]
157164 /// {
158165 /// let pool = rayon_core::ThreadPoolBuilder::new()
0 commit comments