diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index 9083bd8a..6f68ccdc 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -23,6 +23,7 @@ use std::sync::{atomic::*, mpsc::channel, Arc}; #[cfg(feature = "serde")] use serde::{Deserialize, Deserializer, Serialize, Serializer}; +#[cfg(feature = "std")] trait ThreadPoolExt { fn joined_execute<'any, F>(&self, job: F) where