From 8fd87f94eb11f4c76e9aa67ef6c2a3452add0730 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 27 Jan 2025 05:24:10 +0100 Subject: Make `animation` module only available in native --- core/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/src') diff --git a/core/src/lib.rs b/core/src/lib.rs index 16b3aa0f..3a61a5ee 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -10,6 +10,7 @@ html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg" )] pub mod alignment; +#[cfg(not(target_arch = "wasm32"))] pub mod animation; pub mod border; pub mod clipboard; @@ -50,6 +51,7 @@ mod vector; pub use alignment::Alignment; pub use angle::{Degrees, Radians}; +#[cfg(not(target_arch = "wasm32"))] pub use animation::Animation; pub use background::Background; pub use border::Border; -- cgit