summaryrefslogtreecommitdiffstats
path: root/core/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-27 05:24:10 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-27 05:32:18 +0100
commit8fd87f94eb11f4c76e9aa67ef6c2a3452add0730 (patch)
treef9c2d25b2822f2456777564fd621dc5427ed33e2 /core/src/lib.rs
parent2753103942afc262103c15faf9ab2e7495b3f5c2 (diff)
downloadiced-8fd87f94eb11f4c76e9aa67ef6c2a3452add0730.tar.gz
iced-8fd87f94eb11f4c76e9aa67ef6c2a3452add0730.tar.bz2
iced-8fd87f94eb11f4c76e9aa67ef6c2a3452add0730.zip
Make `animation` module only available in native
Diffstat (limited to 'core/src/lib.rs')
-rw-r--r--core/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
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;