summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-09-26 18:20:27 +0200
committerLibravatar GitHub <noreply@github.com>2022-09-26 18:20:27 +0200
commit77800bcf6d268e5891ca62928b81b3e95515c904 (patch)
tree074bd94b3b5aa2e311003689563f5648d5a7fef5
parent4aea743999dfcbffec73d84d9afd73fd5a7c3769 (diff)
parent98b5832917fa709bd9977e776d629e2b0177d935 (diff)
downloadiced-77800bcf6d268e5891ca62928b81b3e95515c904.tar.gz
iced-77800bcf6d268e5891ca62928b81b3e95515c904.tar.bz2
iced-77800bcf6d268e5891ca62928b81b3e95515c904.zip
Merge pull request #1196 from aentity/application_feature
Add application feature, which allows to build freestanding wgpu app
-rw-r--r--Cargo.toml2
-rw-r--r--winit/Cargo.toml1
-rw-r--r--winit/src/lib.rs2
3 files changed, 4 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index cffa5409..725baecc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -96,7 +96,7 @@ iced_core = { version = "0.5", path = "core" }
iced_futures = { version = "0.4", path = "futures" }
iced_native = { version = "0.5", path = "native" }
iced_graphics = { version = "0.3", path = "graphics" }
-iced_winit = { version = "0.4", path = "winit" }
+iced_winit = { version = "0.4", path = "winit", features = ["application"] }
iced_glutin = { version = "0.3", path = "glutin", optional = true }
iced_glow = { version = "0.3", path = "glow", optional = true }
thiserror = "1.0"
diff --git a/winit/Cargo.toml b/winit/Cargo.toml
index f66b92fa..d3ed949f 100644
--- a/winit/Cargo.toml
+++ b/winit/Cargo.toml
@@ -13,6 +13,7 @@ categories = ["gui"]
[features]
debug = ["iced_native/debug"]
system = ["sysinfo"]
+application = []
[dependencies]
window_clipboard = "0.2"
diff --git a/winit/src/lib.rs b/winit/src/lib.rs
index e32cc9af..edba887b 100644
--- a/winit/src/lib.rs
+++ b/winit/src/lib.rs
@@ -35,6 +35,7 @@
pub use iced_native::*;
pub use winit;
+#[cfg(feature = "application")]
pub mod application;
pub mod clipboard;
pub mod conversion;
@@ -48,6 +49,7 @@ mod error;
mod position;
mod proxy;
+#[cfg(feature = "application")]
pub use application::Application;
pub use clipboard::Clipboard;
pub use error::Error;