diff options
author | 2022-01-15 00:06:36 -0800 | |
---|---|---|
committer | 2022-09-26 15:57:30 +0200 | |
commit | 78c9d5bedfdee566c4cb4371e17b48901bab99ae (patch) | |
tree | 53e21c51c9fddb887c6697a5a3b087c934bbd26b /winit | |
parent | 3c2a8b70add7139bf564313da4d2267138ae65aa (diff) | |
download | iced-78c9d5bedfdee566c4cb4371e17b48901bab99ae.tar.gz iced-78c9d5bedfdee566c4cb4371e17b48901bab99ae.tar.bz2 iced-78c9d5bedfdee566c4cb4371e17b48901bab99ae.zip |
Add application feature, which allows to build freestanding wgpu app
Diffstat (limited to 'winit')
-rw-r--r-- | winit/Cargo.toml | 1 | ||||
-rw-r--r-- | winit/src/lib.rs | 2 |
2 files changed, 3 insertions, 0 deletions
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; |