diff --git a/ic-agent/src/lib.rs b/ic-agent/src/lib.rs index 5c3e9f23..e0f3a9a0 100644 --- a/ic-agent/src/lib.rs +++ b/ic-agent/src/lib.rs @@ -106,9 +106,9 @@ #![warn( missing_docs, rustdoc::broken_intra_doc_links, - rustdoc::private_intra_doc_links, - clippy::future_not_send + rustdoc::private_intra_doc_links )] +#![cfg_attr(not(target_family = "wasm"), warn(clippy::future_not_send))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] #[cfg(all(feature = "hyper", target_family = "wasm"))] diff --git a/ic-utils/src/lib.rs b/ic-utils/src/lib.rs index e98fec12..05aca874 100644 --- a/ic-utils/src/lib.rs +++ b/ic-utils/src/lib.rs @@ -5,9 +5,9 @@ missing_docs, missing_debug_implementations, rustdoc::broken_intra_doc_links, - rustdoc::private_intra_doc_links, - clippy::future_not_send + rustdoc::private_intra_doc_links )] +#![cfg_attr(not(target_family = "wasm"), warn(clippy::future_not_send))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] /// Utilities to encapsulate calls to a canister.