@@ -18,12 +18,11 @@ use notify::{
1818} ;
1919use tokio:: { select, sync:: mpsc} ;
2020use tracing:: { debug, error, info, trace, warn} ;
21+ #[ cfg( not( target_os = "windows" ) ) ]
22+ use wash_runtime:: plugin:: wasi_webgpu:: WasiWebGpu ;
2123use wash_runtime:: {
2224 host:: { Host , HostApi } ,
23- plugin:: {
24- wasi_config:: WasiConfig , wasi_http:: HttpServer , wasi_logging:: WasiLogging ,
25- wasi_webgpu:: WasiWebGpu ,
26- } ,
25+ plugin:: { wasi_config:: WasiConfig , wasi_http:: HttpServer , wasi_logging:: WasiLogging } ,
2726 types:: {
2827 Component , HostPathVolume , LocalResources , Volume , VolumeMount , VolumeType , Workload ,
2928 WorkloadStartRequest , WorkloadState , WorkloadStopRequest ,
@@ -61,6 +60,7 @@ pub struct DevCommand {
6160 pub wasi_config : Vec < String > ,
6261
6362 /// Enable WASI WebGPU support
63+ #[ cfg( not( target_os = "windows" ) ) ]
6464 #[ clap( long = "wasi-webgpu" , default_value_t = false ) ]
6565 pub wasi_webgpu : bool ,
6666
@@ -242,6 +242,7 @@ impl CliCommand for DevCommand {
242242 debug ! ( "Logging plugin registered" ) ;
243243
244244 // Enable WASI WebGPU if requested
245+ #[ cfg( not( target_os = "windows" ) ) ]
245246 if self . wasi_webgpu {
246247 host_builder = host_builder. with_plugin ( Arc :: new ( WasiWebGpu :: default ( ) ) ) ?;
247248 debug ! ( "WASI WebGPU plugin registered" ) ;
0 commit comments