mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
On Web, use target_family = "wasm"
This commit is contained in:
parent
77f8e511e9
commit
f0fcb346b0
|
@ -103,7 +103,7 @@ features = [
|
||||||
"Win32_UI_WindowsAndMessaging",
|
"Win32_UI_WindowsAndMessaging",
|
||||||
]
|
]
|
||||||
|
|
||||||
[target.'cfg(all(unix, not(any(target_os = "redox", target_arch = "wasm32", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies]
|
[target.'cfg(all(unix, not(any(target_os = "redox", target_family = "wasm", target_os = "android", target_os = "ios", target_os = "macos"))))'.dependencies]
|
||||||
libc = "0.2.64"
|
libc = "0.2.64"
|
||||||
mio = { version = "0.8", features = ["os-ext"], optional = true }
|
mio = { version = "0.8", features = ["os-ext"], optional = true }
|
||||||
percent-encoding = { version = "2.0", optional = true }
|
percent-encoding = { version = "2.0", optional = true }
|
||||||
|
@ -121,7 +121,7 @@ redox_syscall = "0.3"
|
||||||
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.build-dependencies]
|
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.build-dependencies]
|
||||||
wayland-scanner = "0.29.5"
|
wayland-scanner = "0.29.5"
|
||||||
|
|
||||||
[target.'cfg(target_arch = "wasm32")'.dependencies.web_sys]
|
[target.'cfg(target_family = "wasm")'.dependencies.web_sys]
|
||||||
package = "web-sys"
|
package = "web-sys"
|
||||||
version = "0.3.22"
|
version = "0.3.22"
|
||||||
features = [
|
features = [
|
||||||
|
@ -148,10 +148,10 @@ features = [
|
||||||
'WheelEvent'
|
'WheelEvent'
|
||||||
]
|
]
|
||||||
|
|
||||||
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
|
[target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen]
|
||||||
version = "0.2.45"
|
version = "0.2.45"
|
||||||
|
|
||||||
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
[target.'cfg(target_family = "wasm")'.dev-dependencies]
|
||||||
console_log = "0.2"
|
console_log = "0.2"
|
||||||
web-sys = { version = "0.3.22", features = ['CanvasRenderingContext2d'] }
|
web-sys = { version = "0.3.22", features = ['CanvasRenderingContext2d'] }
|
||||||
|
|
||||||
|
|
2
build.rs
2
build.rs
|
@ -35,7 +35,7 @@ fn main() {
|
||||||
cfg_aliases! {
|
cfg_aliases! {
|
||||||
// Systems.
|
// Systems.
|
||||||
android_platform: { target_os = "android" },
|
android_platform: { target_os = "android" },
|
||||||
wasm_platform: { target_arch = "wasm32" },
|
wasm_platform: { target_family = "wasm" },
|
||||||
macos_platform: { target_os = "macos" },
|
macos_platform: { target_os = "macos" },
|
||||||
ios_platform: { target_os = "ios" },
|
ios_platform: { target_os = "ios" },
|
||||||
windows_platform: { target_os = "windows" },
|
windows_platform: { target_os = "windows" },
|
||||||
|
|
Loading…
Reference in a new issue