summaryrefslogtreecommitdiffstats
path: root/winit/src/settings.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-05 01:43:28 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-05 01:43:28 +0100
commitd8d57a800a2e1bd11dc4d69634d630c8e6117c39 (patch)
tree8a0c6c4eda5ffd349d65c9b0d4273982a21c79c4 /winit/src/settings.rs
parentab2872fe2be5b694f65125b86e5c03b1f3506ac3 (diff)
downloadiced-d8d57a800a2e1bd11dc4d69634d630c8e6117c39.tar.gz
iced-d8d57a800a2e1bd11dc4d69634d630c8e6117c39.tar.bz2
iced-d8d57a800a2e1bd11dc4d69634d630c8e6117c39.zip
Allow providing a DOM identifier as a `target` for Wasm
Diffstat (limited to '')
-rw-r--r--winit/src/settings.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/winit/src/settings.rs b/winit/src/settings.rs
index 6387454b..9bbdef5c 100644
--- a/winit/src/settings.rs
+++ b/winit/src/settings.rs
@@ -7,7 +7,15 @@ mod platform;
#[path = "settings/macos.rs"]
mod platform;
-#[cfg(not(any(target_os = "windows", target_os = "macos")))]
+#[cfg(target_arch = "wasm32")]
+#[path = "settings/wasm.rs"]
+mod platform;
+
+#[cfg(not(any(
+ target_os = "windows",
+ target_os = "macos",
+ target_arch = "wasm32"
+)))]
#[path = "settings/other.rs"]
mod platform;
@@ -27,7 +35,7 @@ pub struct Settings<Flags> {
/// communicate with it through the windowing system.
pub id: Option<String>,
- /// The [`Window`] settings
+ /// The [`Window`] settings.
pub window: Window,
/// The data needed to initialize an [`Application`].