From e5081b51e458bab087c6a8708a3a5681a99fba42 Mon Sep 17 00:00:00 2001 From: Chad Brokaw Date: Thu, 8 Dec 2022 12:12:35 -0500 Subject: [PATCH] remove unnecessary deps --- Cargo.lock | 7 -- piet-wgsl/Cargo.toml | 136 ---------------------------- piet-wgsl/examples/winit/Cargo.toml | 1 - 3 files changed, 144 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a5cc853..9eb3574 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1054,16 +1054,10 @@ name = "piet-wgsl" version = "0.1.0" dependencies = [ "bytemuck", - "console_error_panic_hook", - "console_log", "futures-intrusive", - "js-sys", "parking_lot", "piet-scene", "raw-window-handle 0.5.0", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", "wgpu", ] @@ -2030,7 +2024,6 @@ dependencies = [ "piet-wgsl", "pollster", "roxmltree", - "wasm-bindgen", "wasm-bindgen-futures", "web-sys", "wgpu", diff --git a/piet-wgsl/Cargo.toml b/piet-wgsl/Cargo.toml index 09accc6..d74eb15 100644 --- a/piet-wgsl/Cargo.toml +++ b/piet-wgsl/Cargo.toml @@ -7,144 +7,8 @@ edition = "2021" [dependencies] wgpu = "0.14" -wasm-bindgen = "0.2" raw-window-handle = "0.5" futures-intrusive = "0.5.0" parking_lot = "0.12" bytemuck = { version = "1.12.1", features = ["derive"] } piet-scene = { path = "../piet-scene" } - -[target.'cfg(target_arch = "wasm32")'.dependencies] -console_error_panic_hook = "0.1.7" -console_log = "0.2" -wasm-bindgen-futures = "0.4.33" -js-sys = "0.3.60" -web-sys = { version = "0.3.60", features = [ - "Document", - "Navigator", - "Node", - "NodeList", - "Gpu", - "GpuAdapter", - "GpuAddressMode", - "GpuAutoLayoutMode", - "GpuBindGroup", - "GpuBindGroupDescriptor", - "GpuBindGroupEntry", - "GpuBindGroupLayout", - "GpuBindGroupLayoutDescriptor", - "GpuBindGroupLayoutEntry", - "GpuBlendComponent", - "GpuBlendFactor", - "GpuBlendOperation", - "GpuBlendState", - "GpuBuffer", - "GpuBufferBinding", - "GpuBufferBindingLayout", - "GpuBufferBindingType", - "GpuBufferDescriptor", - "GpuCanvasAlphaMode", - "GpuCanvasContext", - "GpuCanvasConfiguration", - "GpuColorDict", - "GpuColorTargetState", - "GpuCommandBuffer", - "GpuCommandBufferDescriptor", - "GpuCommandEncoder", - "GpuCommandEncoderDescriptor", - "GpuCompareFunction", - "GpuCompilationInfo", - "GpuCompilationMessage", - "GpuCompilationMessageType", - "GpuComputePassDescriptor", - "GpuComputePassEncoder", - "GpuComputePipeline", - "GpuComputePipelineDescriptor", - "GpuCullMode", - "GpuDepthStencilState", - "GpuDevice", - "GpuDeviceDescriptor", - "GpuDeviceLostInfo", - "GpuDeviceLostReason", - "GpuError", - "GpuErrorFilter", - "GpuExtent3dDict", - "GpuFeatureName", - "GpuFilterMode", - "GpuFragmentState", - "GpuFrontFace", - "GpuImageCopyBuffer", - "GpuImageCopyExternalImage", - "GpuImageCopyTexture", - "GpuImageCopyTextureTagged", - "GpuImageDataLayout", - "GpuIndexFormat", - "GpuLoadOp", - "gpu_map_mode", - "GpuMipmapFilterMode", - "GpuMultisampleState", - "GpuObjectDescriptorBase", - "GpuOrigin2dDict", - "GpuOrigin3dDict", - "GpuOutOfMemoryError", - "GpuPipelineDescriptorBase", - "GpuPipelineLayout", - "GpuPipelineLayoutDescriptor", - "GpuPowerPreference", - "GpuPrimitiveState", - "GpuPrimitiveTopology", - "GpuProgrammableStage", - "GpuQuerySet", - "GpuQuerySetDescriptor", - "GpuQueryType", - "GpuQueue", - "GpuRenderBundle", - "GpuRenderBundleDescriptor", - "GpuRenderBundleEncoder", - "GpuRenderBundleEncoderDescriptor", - "GpuRenderPassColorAttachment", - "GpuRenderPassDepthStencilAttachment", - "GpuRenderPassDescriptor", - "GpuRenderPassEncoder", - "GpuRenderPipeline", - "GpuRenderPipelineDescriptor", - "GpuRequestAdapterOptions", - "GpuSampler", - "GpuSamplerBindingLayout", - "GpuSamplerBindingType", - "GpuSamplerDescriptor", - "GpuShaderModule", - "GpuShaderModuleDescriptor", - "GpuStencilFaceState", - "GpuStencilOperation", - "GpuStorageTextureAccess", - "GpuStorageTextureBindingLayout", - "GpuStoreOp", - "GpuSupportedFeatures", - "GpuSupportedLimits", - "GpuTexture", - "GpuTextureAspect", - "GpuTextureBindingLayout", - "GpuTextureDescriptor", - "GpuTextureDimension", - "GpuTextureFormat", - "GpuTextureSampleType", - "GpuTextureView", - "GpuTextureViewDescriptor", - "GpuTextureViewDimension", - "GpuUncapturedErrorEvent", - "GpuUncapturedErrorEventInit", - "GpuValidationError", - "GpuVertexAttribute", - "GpuVertexBufferLayout", - "GpuVertexFormat", - "GpuVertexState", - "GpuVertexStepMode", - "HtmlCanvasElement", - "OffscreenCanvas", - "ImageBitmap", - "ImageBitmapRenderingContext", - "Window", - "WorkerGlobalScope", - "WorkerNavigator" -] } diff --git a/piet-wgsl/examples/winit/Cargo.toml b/piet-wgsl/examples/winit/Cargo.toml index 6e7b8d2..ff8b10c 100644 --- a/piet-wgsl/examples/winit/Cargo.toml +++ b/piet-wgsl/examples/winit/Cargo.toml @@ -11,7 +11,6 @@ wgpu = "0.14" piet-wgsl = { path = "../../../piet-wgsl" } piet-scene = { path = "../../../piet-scene" } winit = "0.27.5" -wasm-bindgen = "0.2" pollster = "0.2.5" # for picosvg roxmltree = "0.13"