@@ -10,7 +10,7 @@ repository = "https://github.com/rust-windowing/softbuffer"
10
10
keywords = [" framebuffer" , " windowing" ]
11
11
categories = [" game-development" , " graphics" , " gui" , " multimedia" , " rendering" ]
12
12
exclude = [" examples" ]
13
- rust-version = " 1.70 .0"
13
+ rust-version = " 1.71 .0"
14
14
15
15
[[bench ]]
16
16
name = " buffer_mut"
@@ -19,13 +19,29 @@ harness = false
19
19
[features ]
20
20
default = [" kms" , " x11" , " x11-dlopen" , " wayland" , " wayland-dlopen" ]
21
21
kms = [" bytemuck" , " drm" , " rustix" ]
22
- wayland = [" wayland-backend" , " wayland-client" , " wayland-sys" , " memmap2" , " rustix" , " fastrand" ]
22
+ wayland = [
23
+ " wayland-backend" ,
24
+ " wayland-client" ,
25
+ " wayland-sys" ,
26
+ " memmap2" ,
27
+ " rustix" ,
28
+ " fastrand" ,
29
+ ]
23
30
wayland-dlopen = [" wayland-sys/dlopen" ]
24
- x11 = [" as-raw-xcb-connection" , " bytemuck" , " fastrand" , " rustix" , " tiny-xlib" , " x11rb" ]
31
+ x11 = [
32
+ " as-raw-xcb-connection" ,
33
+ " bytemuck" ,
34
+ " fastrand" ,
35
+ " rustix" ,
36
+ " tiny-xlib" ,
37
+ " x11rb" ,
38
+ ]
25
39
x11-dlopen = [" tiny-xlib/dlopen" , " x11rb/dl-libxcb" ]
26
40
27
41
[dependencies ]
28
- raw_window_handle = { package = " raw-window-handle" , version = " 0.6" , features = [" std" ] }
42
+ raw_window_handle = { package = " raw-window-handle" , version = " 0.6" , features = [
43
+ " std" ,
44
+ ] }
29
45
tracing = { version = " 0.1.41" , default-features = false }
30
46
31
47
[target .'cfg(target_os = "android")' .dependencies ]
@@ -38,31 +54,61 @@ bytemuck = { version = "1.12.3", optional = true }
38
54
drm = { version = " 0.14.1" , default-features = false , optional = true }
39
55
fastrand = { version = " 2.0.0" , optional = true }
40
56
memmap2 = { version = " 0.9.0" , optional = true }
41
- rustix = { version = " 0.38.19" , features = [" fs" , " mm" , " shm" , " std" ], default-features = false , optional = true }
57
+ rustix = { version = " 0.38.19" , features = [
58
+ " fs" ,
59
+ " mm" ,
60
+ " shm" ,
61
+ " std" ,
62
+ ], default-features = false , optional = true }
42
63
tiny-xlib = { version = " 0.2.1" , optional = true }
43
- wayland-backend = { version = " 0.3.0" , features = [" client_system" ], optional = true }
64
+ wayland-backend = { version = " 0.3.0" , features = [
65
+ " client_system" ,
66
+ ], optional = true }
44
67
wayland-client = { version = " 0.31.0" , optional = true }
45
68
wayland-sys = { version = " 0.31.0" , optional = true }
46
- x11rb = { version = " 0.13.0" , features = [" allow-unsafe-code" , " shm" ], optional = true }
69
+ x11rb = { version = " 0.13.0" , features = [
70
+ " allow-unsafe-code" ,
71
+ " shm" ,
72
+ ], optional = true }
47
73
48
74
[target .'cfg(target_os = "windows")' .dependencies .windows-sys ]
49
75
version = " 0.59.0"
50
- features = [" Win32_Graphics_Gdi" , " Win32_UI_Shell" , " Win32_UI_WindowsAndMessaging" , " Win32_Foundation" ]
76
+ features = [
77
+ " Win32_Graphics_Gdi" ,
78
+ " Win32_UI_Shell" ,
79
+ " Win32_UI_WindowsAndMessaging" ,
80
+ " Win32_Foundation" ,
81
+ ]
51
82
52
83
[target .'cfg(target_vendor = "apple")' .dependencies ]
53
- bytemuck = { version = " 1.12.3" , features = [" extern_crate_alloc" ] }
54
- core-graphics = " 0.24.0"
55
- foreign-types = " 0.5.0"
56
- objc2 = " 0.5.2"
57
- objc2-foundation = { version = " 0.2.2" , features = [
84
+ objc2-core-graphics = { version = " 0.3.0" , default-features = false , features = [
85
+ " std" ,
86
+ " objc2" ,
87
+ " CGColorSpace" ,
88
+ " CGDataProvider" ,
89
+ " CGImage" ,
90
+ ] }
91
+ objc2 = " 0.6.0"
92
+ objc2-core-foundation = { version = " 0.3.0" , default-features = false , features = [
93
+ " std" ,
94
+ " CFCGTypes" ,
95
+ ] }
96
+ objc2-foundation = { version = " 0.3.0" , default-features = false , features = [
97
+ " std" ,
98
+ " objc2-core-foundation" ,
58
99
" NSDictionary" ,
59
100
" NSGeometry" ,
60
101
" NSKeyValueObserving" ,
61
102
" NSString" ,
62
103
" NSThread" ,
63
104
" NSValue" ,
64
105
] }
65
- objc2-quartz-core = { version = " 0.2.2" , features = [" CALayer" , " CATransaction" ] }
106
+ objc2-quartz-core = { version = " 0.3.0" , default-features = false , features = [
107
+ " std" ,
108
+ " objc2-core-foundation" ,
109
+ " CALayer" ,
110
+ " CATransaction" ,
111
+ ] }
66
112
67
113
[target .'cfg(target_arch = "wasm32")' .dependencies ]
68
114
js-sys = " 0.3.63"
@@ -89,7 +135,9 @@ cfg_aliases = "0.2.0"
89
135
90
136
[dev-dependencies ]
91
137
colorous = " 1.0.12"
92
- criterion = { version = " 0.4.0" , default-features = false , features = [" cargo_bench_support" ] }
138
+ criterion = { version = " 0.4.0" , default-features = false , features = [
139
+ " cargo_bench_support" ,
140
+ ] }
93
141
web-time = " 1.0.0"
94
142
winit = " 0.30.0"
95
143
@@ -114,9 +162,7 @@ wasm-bindgen-test = "0.3"
114
162
rustix = { version = " 0.38.8" , features = [" event" ] }
115
163
116
164
[workspace ]
117
- members = [
118
- " run-wasm" ,
119
- ]
165
+ members = [" run-wasm" ]
120
166
121
167
[[example ]]
122
168
# Run with `cargo apk r --example winit_android`
0 commit comments