From 5514e637acd55c52a134329fa57f89e18627c865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Sun, 26 Sep 2021 11:21:22 +0200 Subject: [PATCH] Do not compile `wasm_api` module when not needed. (#3934) This otherwise generates some warnings which leads to errors in CI: https://gitlab.parity.io/parity/cumulus/-/jobs/1141589 --- polkadot/parachain/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/polkadot/parachain/src/lib.rs b/polkadot/parachain/src/lib.rs index 2cf441e88c..e73103d557 100644 --- a/polkadot/parachain/src/lib.rs +++ b/polkadot/parachain/src/lib.rs @@ -47,6 +47,7 @@ pub mod primitives; +#[cfg(all(not(feature = "std"), feature = "wasm-api"))] mod wasm_api; #[cfg(all(not(feature = "std"), feature = "wasm-api"))]