From 7ee9d5639b21d6a60d283d32dfc4cb31dce20a10 Mon Sep 17 00:00:00 2001 From: Zakarum Date: Wed, 14 Aug 2019 11:20:05 +0300 Subject: [PATCH] Disable web module on other targets than wasm32 (#1102) --- src/platform/web.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/web.rs b/src/platform/web.rs index edb37f8b..6a1a98cd 100644 --- a/src/platform/web.rs +++ b/src/platform/web.rs @@ -1,3 +1,5 @@ +#![cfg(target_arch = "wasm32")] + #[cfg(feature = "stdweb")] use stdweb::web::html_element::CanvasElement;