@@ -121,7 +121,7 @@ fn wasm32_with_webgpu_and_wgsl_does_not_depend_on_naga() {
121
121
human_readable_name : "wasm32 with `webgpu` and `wgsl` feature does not depend on `naga`" ,
122
122
target : "wasm32-unknown-unknown" ,
123
123
packages : & [ "wgpu" ] ,
124
- features : & [ "webgpu" , "wgsl "] ,
124
+ features : & [ "custom " ] ,
125
125
default_features : false ,
126
126
search_terms : & [ Search :: Negative ( "naga" ) ] ,
127
127
} ) ;
@@ -139,6 +139,54 @@ fn wasm32_with_webgl_depends_on_glow() {
139
139
} ) ;
140
140
}
141
141
142
+ #[ test]
143
+ fn wasm32_with_only_custom_backend_does_not_depend_on_web_specifics ( ) {
144
+ check_feature_dependency ( Requirement {
145
+ human_readable_name : "wasm32 with only the `custom` backend does not depend on web-specific bindings [`wasm-bindgen`, `js-sys`, `web-sys`]" ,
146
+ target : "wasm32-unknown-unknown" ,
147
+ packages : & [ "wgpu" ] ,
148
+ features : & [ "custom" ] ,
149
+ default_features : false ,
150
+ search_terms : & [ Search :: Negative ( "wasm-bindgen" ) , Search :: Negative ( "js-sys" ) , Search :: Negative ( "web-sys" ) ] ,
151
+ } ) ;
152
+ }
153
+
154
+ #[ test]
155
+ fn wasm32_with_webgpu_backend_does_depend_on_web_specifics ( ) {
156
+ check_feature_dependency ( Requirement {
157
+ human_readable_name : "wasm32 with the `webgpu` backend depends on web-specific bindings [`wasm-bindgen`, `js-sys`, `web-sys`]" ,
158
+ target : "wasm32-unknown-unknown" ,
159
+ packages : & [ "wgpu" ] ,
160
+ features : & [ "webgpu" ] ,
161
+ default_features : false ,
162
+ search_terms : & [ Search :: Positive ( "wasm-bindgen" ) , Search :: Positive ( "js-sys" ) , Search :: Positive ( "web-sys" ) ] ,
163
+ } ) ;
164
+ }
165
+
166
+ #[ test]
167
+ fn wasm32_with_webgl_backend_does_depend_on_web_specifics ( ) {
168
+ check_feature_dependency ( Requirement {
169
+ human_readable_name : "wasm32 with the `webgl` backend depends on web-specific bindings [`wasm-bindgen`, `js-sys`, `web-sys`]" ,
170
+ target : "wasm32-unknown-unknown" ,
171
+ packages : & [ "wgpu" ] ,
172
+ features : & [ "webgl" ] ,
173
+ default_features : false ,
174
+ search_terms : & [ Search :: Positive ( "wasm-bindgen" ) , Search :: Positive ( "js-sys" ) , Search :: Positive ( "web-sys" ) ] ,
175
+ } ) ;
176
+ }
177
+
178
+ #[ test]
179
+ fn windows_with_webgpu_webgl_backend_does_not_depend_on_web_specifics ( ) {
180
+ check_feature_dependency ( Requirement {
181
+ human_readable_name : "windows with the `webgpu` and `webgl` backends enabled does not depend on web-specific bindings [`wasm-bindgen`, `js-sys`, `web-sys`]" ,
182
+ target : "x86_64-pc-windows-msvc" ,
183
+ packages : & [ "wgpu" ] ,
184
+ features : & [ "webgpu" , "webgl" ] ,
185
+ default_features : false ,
186
+ search_terms : & [ Search :: Negative ( "wasm-bindgen" ) , Search :: Negative ( "js-sys" ) , Search :: Negative ( "web-sys" ) ] ,
187
+ } ) ;
188
+ }
189
+
142
190
#[ test]
143
191
fn windows_with_webgl_does_not_depend_on_glow ( ) {
144
192
check_feature_dependency ( Requirement {
0 commit comments