Skip to content

Commit 3a84da6

Browse files
authored
Move winit itself to crate
That way we use top-level Cargo.toml only for the workspace management purposes.
1 parent 478427b commit 3a84da6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+140
-134
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- { name: 'Linux 64bit', target: x86_64-unknown-linux-gnu, os: ubuntu-latest, }
6767
- { name: 'X11', target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: '--no-default-features --features=x11' }
6868
- { name: 'Wayland', target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: '--no-default-features --features=wayland,wayland-dlopen' }
69-
- { name: 'Android', target: aarch64-linux-android, os: ubuntu-latest, options: '--package=winit --features=android-native-activity', cmd: 'apk --' }
69+
- { name: 'Android', target: aarch64-linux-android, os: ubuntu-latest, options: '--package winit --features=android-native-activity', cmd: 'apk -- ' }
7070
- { name: 'Redox OS', target: x86_64-unknown-redox, os: ubuntu-latest, }
7171
- { name: 'macOS x86_64', target: x86_64-apple-darwin, os: macos-latest, }
7272
- { name: 'macOS Aarch64', target: aarch64-apple-darwin, os: macos-latest, }
@@ -89,7 +89,7 @@ jobs:
8989
platform: { name: 'Redox OS' }
9090
include:
9191
- toolchain: '1.80'
92-
platform: { name: 'Android', target: aarch64-linux-android, os: ubuntu-latest, options: '--package=winit --features=android-native-activity', cmd: 'apk --' }
92+
platform: { name: 'Android', target: aarch64-linux-android, os: ubuntu-latest, options: '--package winit --features=android-native-activity', cmd: 'apk -- ' }
9393
- toolchain: 'nightly'
9494
platform: { name: 'Web', target: wasm32-unknown-unknown, os: ubuntu-latest, test-options: -Zdoctest-xcompile }
9595
- toolchain: 'nightly'
@@ -313,6 +313,7 @@ jobs:
313313
with:
314314
command: check
315315
log-level: error
316+
manifest-path: winit/Cargo.toml
316317
arguments: --all-features --target ${{ matrix.platform.target }}
317318

318319
eslint:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion

Cargo.toml

Lines changed: 3 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[workspace]
2-
members = ["dpi", "winit-*"]
2+
default-members = ["winit"]
3+
members = ["dpi", "winit*"]
34
resolver = "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" }
1516
winit-android = { version = "0.0.0", path = "winit-android" }
1617
winit-appkit = { version = "0.0.0", path = "winit-appkit" }
1718
winit-common = { version = "0.0.0", path = "winit-common" }
@@ -99,132 +100,3 @@ wasm-bindgen-futures = "0.4.43"
99100
wasm-bindgen-test = "0.3"
100101
web-time = "1"
101102
web_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"

winit-android/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE

winit-appkit/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE

winit-common/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE

winit-orbital/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE

winit-uikit/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE

winit-wayland/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE

winit-web/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE

0 commit comments

Comments
 (0)