11[workspace ]
2- members = [" dpi" , " winit-*" ]
2+ default-members = [" winit" ]
3+ members = [" dpi" , " winit*" ]
34resolver = " 2"
45
56[workspace .package ]
@@ -11,7 +12,7 @@ rust-version = "1.80"
1112[workspace .dependencies ]
1213# Workspace dependencies.
1314# `winit` has no version here to allow using it in dev deps for docs.
14- winit = { path = " . " }
15+ winit = { path = " winit " }
1516winit-android = { version = " 0.0.0" , path = " winit-android" }
1617winit-appkit = { version = " 0.0.0" , path = " winit-appkit" }
1718winit-common = { version = " 0.0.0" , path = " winit-common" }
@@ -99,132 +100,3 @@ wasm-bindgen-futures = "0.4.43"
99100wasm-bindgen-test = " 0.3"
100101web-time = " 1"
101102web_sys = { package = " web-sys" , version = " 0.3.70" }
102-
103- # #
104- # # Top-level Winit crate.
105- # #
106- [package ]
107- authors = [
" The winit contributors" ,
" Pierre Krieger <[email protected] >" ]
108- categories = [" gui" ]
109- description = " Cross-platform window creation library."
110- documentation = " https://docs.rs/winit"
111- edition.workspace = true
112- include = [" /build.rs" , " /docs" , " /examples" , " /FEATURES.md" , " /LICENSE" , " /src" , " /tests" ]
113- keywords = [" windowing" ]
114- license.workspace = true
115- name = " winit"
116- readme = " README.md"
117- repository.workspace = true
118- rust-version.workspace = true
119- version = " 0.30.11"
120-
121- [package .metadata .docs .rs ]
122- features = [
123- " serde" ,
124- " mint" ,
125- # Enabled to get docs to compile
126- " android-native-activity" ,
127- ]
128- # These are all tested in CI
129- rustdoc-args = [" --cfg" , " docsrs" ]
130- targets = [
131- # Windows
132- " i686-pc-windows-msvc" ,
133- " x86_64-pc-windows-msvc" ,
134- # macOS
135- " aarch64-apple-darwin" ,
136- " x86_64-apple-darwin" ,
137- # Unix (X11 & Wayland)
138- " i686-unknown-linux-gnu" ,
139- " x86_64-unknown-linux-gnu" ,
140- # iOS
141- " aarch64-apple-ios" ,
142- # Android
143- " aarch64-linux-android" ,
144- # Web
145- " wasm32-unknown-unknown" ,
146- ]
147-
148- # Features are documented in either `lib.rs` or under `winit::platform`.
149- [features ]
150- default = [" x11" , " wayland" , " wayland-dlopen" , " wayland-csd-adwaita" ]
151-
152- android-game-activity = [" winit-android/game-activity" ]
153- android-native-activity = [" winit-android/native-activity" ]
154- mint = [" dpi/mint" ]
155- serde = [
156- " dep:serde" ,
157- " cursor-icon/serde" ,
158- " smol_str/serde" ,
159- " dpi/serde" ,
160- " bitflags/serde" ,
161- " winit-core/serde" ,
162- " winit-uikit/serde" ,
163- ]
164- wayland = [" winit-wayland" ]
165- wayland-csd-adwaita = [" winit-wayland/csd-adwaita" ]
166- wayland-csd-adwaita-crossfont = [" winit-wayland/csd-adwaita-crossfont" ]
167- wayland-csd-adwaita-notitle = [" winit-wayland/csd-adwaita-notitle" ]
168- wayland-dlopen = [" winit-wayland/dlopen" ]
169- x11 = [" dep:winit-x11" ]
170-
171- [build-dependencies ]
172- cfg_aliases.workspace = true
173-
174- [dependencies ]
175- bitflags.workspace = true
176- cursor-icon.workspace = true
177- dpi.workspace = true
178- rwh_06.workspace = true
179- serde = { workspace = true , optional = true }
180- smol_str.workspace = true
181- tracing.workspace = true
182- winit-core.workspace = true
183-
184- [dev-dependencies ]
185- image = { workspace = true , features = [" png" ] }
186- tracing = { workspace = true , features = [" log" ] }
187- tracing-subscriber = { workspace = true , features = [" env-filter" ] }
188-
189- [target .'cfg(not(target_os = "android"))' .dev-dependencies ]
190- softbuffer.workspace = true
191-
192- [target .'cfg(target_os = "android")' .dependencies ]
193- winit-android.workspace = true
194-
195- [target .'cfg(target_os = "macos")' .dependencies ]
196- winit-appkit.workspace = true
197-
198- [target .'cfg(all(target_vendor = "apple", not(target_os = "macos")))' .dependencies ]
199- winit-uikit.workspace = true
200-
201- [target .'cfg(target_os = "windows")' .dependencies ]
202- winit-win32.workspace = true
203-
204- # Linux
205- [target .'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_vendor = "apple"))))' .dependencies ]
206- libc.workspace = true
207- rustix = { workspace = true , features = [" std" , " thread" ] }
208- winit-common = { workspace = true , features = [" xkb" ] }
209- winit-wayland = { workspace = true , optional = true , default-features = false }
210- winit-x11 = { workspace = true , optional = true }
211-
212- [target .'cfg(target_os = "redox")' .dependencies ]
213- winit-orbital.workspace = true
214-
215- [target .'cfg(target_family = "wasm")' .dependencies ]
216- winit-web.workspace = true
217-
218- [target .'cfg(target_family = "wasm")' .dev-dependencies ]
219- console_error_panic_hook.workspace = true
220- tracing-web.workspace = true
221- wasm-bindgen-futures.workspace = true
222- wasm-bindgen-test.workspace = true
223- web-time.workspace = true
224-
225- [[example ]]
226- doc-scrape-examples = true
227- name = " window"
228-
229- [[example ]]
230- name = " child_window"
0 commit comments