Skip to content

Commit f91d9f3

Browse files
authored
Fix vscode issues on wasm32 (#8584)
1 parent babd694 commit f91d9f3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

benches/benches/wgpu-benchmark/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#[cfg_attr(target_arch = "wasm32", no_main)]
2-
#[cfg(not(target_arch = "wasm32"))]
1+
#![cfg_attr(target_arch = "wasm32", no_main)]
2+
#![cfg(not(target_arch = "wasm32"))]
33
use pollster::block_on;
44
use wgpu_benchmark::Benchmark;
55

wgpu-hal/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ cfg_aliases.workspace = true
328328
[dev-dependencies]
329329
env_logger.workspace = true
330330
glam.workspace = true # for ray-traced-triangle example
331+
log.workspace = true
331332
naga = { workspace = true, features = ["wgsl-in", "termcolor"] }
332333
winit.workspace = true # for "halmark" example
333334

0 commit comments

Comments
 (0)