You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> cargo build
Compiling bitflags v1.2.1
Compiling winapi v0.3.9
Compiling cfg-if v1.0.0
Compiling proc-macro2 v1.0.24
Compiling libc v0.2.82
Compiling jobserver v0.1.21
Compiling unicode-xid v0.2.1
Compiling cfg-if v0.1.10
Compiling syn v1.0.58
Compiling log v0.4.13
Compiling byteorder v1.4.2
Compiling scopeguard v1.1.0
Compiling smallvec v1.6.1
Compiling proc-macro-hack v0.5.19
Compiling lazy_static v1.4.0
Compiling autocfg v1.0.1
Compiling once_cell v1.5.2
Compiling proc-macro-nested v0.1.7
Compiling pin-project-lite v0.2.4
Compiling slab v0.4.2
Compiling memchr v2.3.4
Compiling arrayvec v0.5.2
Compiling futures-core v0.3.12
Compiling futures-sink v0.3.12
Compiling bit-vec v0.6.3
Compiling futures-io v0.3.12
Compiling pin-utils v0.1.0
Compiling range-alloc v0.1.1
Compiling getrandom v0.2.1
Compiling inplace_it v0.3.2
Compiling thunderdome v0.3.0
Compiling wide v0.4.6
Compiling copyless v0.1.5
Compiling serde_derive v1.0.119
Compiling bytemuck v1.5.0
Compiling serde v1.0.119
Compiling typed-arena v2.0.1
Compiling ppv-lite86 v0.2.10
Compiling pollster v0.2.0
Compiling lock_api v0.4.2
Compiling instant v0.1.9
Compiling cc v1.0.66
Compiling tracing-core v0.1.17
Compiling futures-task v0.3.12
Compiling fxhash v0.2.1
Compiling futures-channel v0.3.12
Compiling bit-set v0.5.2
Compiling spinning_top v0.2.2
Compiling num-traits v0.2.14
Compiling wgpu-types v0.6.1
Compiling flume v0.10.1
Compiling tracing v0.1.22
Compiling rand_core v0.6.1
Compiling raw-window-handle v0.3.3
Compiling rand_chacha v0.3.0
Compiling rand_pcg v0.3.0
Compiling gfx-hal v0.6.0
Compiling quote v1.0.8
Compiling rand v0.8.2
Compiling ultraviolet v0.4.6
Compiling paste-impl v0.1.18
Compiling spirv_cross v0.22.2
Compiling imgui-sys v0.6.0
Compiling spirv_headers v1.5.0
Compiling paste v0.1.18
Compiling simdeez v1.0.6
Compiling gfx-descriptor v0.2.0
Compiling gfx-backend-empty v0.6.0
Compiling gfx-memory v0.2.2
Compiling simdnoise v3.1.6
Compiling futures-macro v0.3.12
Compiling thiserror-impl v1.0.23
Compiling futures-util v0.3.12
Compiling parking_lot_core v0.8.2
Compiling libloading v0.6.7
Compiling wio v0.2.2
Compiling thiserror v1.0.23
Compiling ash v0.31.0
Compiling d3d12 v0.3.2
Compiling naga v0.2.0
Compiling parking_lot v0.11.1
Compiling imgui v0.6.1
Compiling winit v0.24.0
Compiling puffin v0.3.1
Compiling imgui-winit-support v0.6.1
Compiling futures-executor v0.3.12
Compiling futures v0.3.12
Compiling puffin-imgui v0.5.0
Compiling gfx-backend-vulkan v0.6.5
Compiling gfx-auxil v0.7.0
Compiling gfx-backend-dx11 v0.6.17
Compiling gfx-backend-dx12 v0.6.13
Compiling wgpu-core v0.6.5
Compiling wgpu v0.6.2
error[E0433]: failed to resolve: use of undeclared crate or module `winit`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:4:5
|
4 | use winit::{
| ^^^^^ use of undeclared crate or module `winit`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:3:5
|
3 | use wgpu::util::DeviceExt;
| ^^^^ use of undeclared crate or module `wgpu`
error[E0432]: unresolved imports `wgpu::util::DeviceExt`, `winit::event_loop::ControlFlow`, `winit::event_loop::EventLoop`, `winit::window::Window`, `winit::window::WindowBuilder`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:3:5
|
3 | use wgpu::util::DeviceExt;
| ^^^^^^^^^^^^^^^^^^^^^
...
6 | event_loop::{ControlFlow, EventLoop},
| ^^^^^^^^^^^ ^^^^^^^^^
7 | window::{Window, WindowBuilder},
| ^^^^^^ ^^^^^^^^^^^^^
error[E0433]: failed to resolve: use of undeclared crate or module `bytemuck`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:11:30
|
11 | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)]
| ^^^^^^^^ use of undeclared crate or module `bytemuck`
error[E0433]: failed to resolve: use of undeclared crate or module `bytemuck`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:11:45
|
11 | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)]
| ^^^^^^^^ use of undeclared crate or module `bytemuck`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:114:53
|
114 | let vs_module = device.create_shader_module(wgpu::include_spirv!("shader.vert.spv"));
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:115:53
|
115 | let fs_module = device.create_shader_module(wgpu::include_spirv!("shader.frag.spv"));
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:18:22
|
18 | fn desc<'a>() -> wgpu::VertexBufferDescriptor<'a> {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:19:9
|
19 | wgpu::VertexBufferDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:20:54
|
20 | stride: std::mem::size_of::<Vertex>() as wgpu::BufferAddress,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:21:24
|
21 | step_mode: wgpu::InputStepMode::Vertex,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:23:17
|
23 | wgpu::VertexAttributeDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:26:29
|
26 | format: wgpu::VertexFormat::Float3,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:28:17
|
28 | wgpu::VertexAttributeDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:29:64
|
29 | offset: std::mem::size_of::<[f32; 3]>() as wgpu::BufferAddress,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:31:29
|
31 | format: wgpu::VertexFormat::Float3,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:64:14
|
64 | surface: wgpu::Surface,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:65:13
|
65 | device: wgpu::Device,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:66:12
|
66 | queue: wgpu::Queue,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:67:14
|
67 | sc_desc: wgpu::SwapChainDescriptor,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:68:17
|
68 | swap_chain: wgpu::SwapChain,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `winit`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:69:11
|
69 | size: winit::dpi::PhysicalSize<u32>,
| ^^^^^ use of undeclared crate or module `winit`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:70:22
|
70 | render_pipeline: wgpu::RenderPipeline,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:72:20
|
72 | vertex_buffer: wgpu::Buffer,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:73:19
|
73 | index_buffer: wgpu::Buffer,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:83:44
|
83 | let instance = wgpu::Instance::new(wgpu::BackendBit::PRIMARY);
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:86:31
|
86 | .request_adapter(&wgpu::RequestAdapterOptions {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:87:35
|
87 | power_preference: wgpu::PowerPreference::Default,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:95:18
|
95 | &wgpu::DeviceDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:105:23
|
105 | let sc_desc = wgpu::SwapChainDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:106:20
|
106 | usage: wgpu::TextureUsage::OUTPUT_ATTACHMENT,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:107:21
|
107 | format: wgpu::TextureFormat::Bgra8UnormSrgb,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:110:27
|
110 | present_mode: wgpu::PresentMode::Fifo,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:118:44
|
118 | device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:124:62
|
124 | let render_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:127:27
|
127 | vertex_stage: wgpu::ProgrammableStageDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:131:34
|
131 | fragment_stage: Some(wgpu::ProgrammableStageDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:135:39
|
135 | rasterization_state: Some(wgpu::RasterizationStateDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:136:29
|
136 | front_face: wgpu::FrontFace::Ccw,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:137:28
|
137 | cull_mode: wgpu::CullMode::Back,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:143:33
|
143 | primitive_topology: wgpu::PrimitiveTopology::TriangleList,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:144:29
|
144 | color_states: &[wgpu::ColorStateDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:146:30
|
146 | color_blend: wgpu::BlendDescriptor::REPLACE,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:147:30
|
147 | alpha_blend: wgpu::BlendDescriptor::REPLACE,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:148:29
|
148 | write_mask: wgpu::ColorWrite::ALL,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:151:27
|
151 | vertex_state: wgpu::VertexStateDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:152:31
|
152 | index_format: wgpu::IndexFormat::Uint16,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:160:56
|
160 | let vertex_buffer = device.create_buffer_init(&wgpu::util::BufferInitDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `bytemuck`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:162:23
|
162 | contents: bytemuck::cast_slice(VERTICES),
| ^^^^^^^^ use of undeclared crate or module `bytemuck`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:163:20
|
163 | usage: wgpu::BufferUsage::VERTEX,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:165:55
|
165 | let index_buffer = device.create_buffer_init(&wgpu::util::BufferInitDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `bytemuck`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:167:23
|
167 | contents: bytemuck::cast_slice(INDICES),
| ^^^^^^^^ use of undeclared crate or module `bytemuck`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:168:20
|
168 | usage: wgpu::BufferUsage::INDEX,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `winit`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:186:36
|
186 | fn resize(&mut self, new_size: winit::dpi::PhysicalSize<u32>) {
| ^^^^^ use of undeclared crate or module `winit`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:200:40
|
200 | fn render(&mut self) -> Result<(), wgpu::SwapChainError> {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:205:38
|
205 | .create_command_encoder(&wgpu::CommandEncoderDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:210:62
|
210 | let mut render_pass = encoder.begin_render_pass(&wgpu::RenderPassDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:211:38
|
211 | color_attachments: &[wgpu::RenderPassColorAttachmentDescriptor {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:214:26
|
214 | ops: wgpu::Operations {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:215:51
|
215 | load: wgpu::LoadOp::Clear(wgpu::Color {
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `env_logger`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:240:5
|
240 | env_logger::init();
| ^^^^^^^^^^ use of undeclared crate or module `env_logger`
error[E0433]: failed to resolve: use of undeclared type `EventLoop`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:241:22
|
241 | let event_loop = EventLoop::new();
| ^^^^^^^^^ use of undeclared type `EventLoop`
error[E0433]: failed to resolve: use of undeclared type `WindowBuilder`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:242:18
|
242 | let window = WindowBuilder::new().build(&event_loop).unwrap();
| ^^^^^^^^^^^^^ use of undeclared type `WindowBuilder`
error[E0433]: failed to resolve: use of undeclared type `Event`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:251:13
|
251 | Event::WindowEvent {
| ^^^^^ use of undeclared type `Event`
error[E0433]: failed to resolve: use of undeclared type `WindowEvent`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:257:25
|
257 | WindowEvent::CloseRequested => *control_flow = ControlFlow::Exit,
| ^^^^^^^^^^^ use of undeclared type `WindowEvent`
error[E0433]: failed to resolve: use of undeclared type `ControlFlow`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:257:72
|
257 | WindowEvent::CloseRequested => *control_flow = ControlFlow::Exit,
| ^^^^^^^^^^^ use of undeclared type `ControlFlow`
error[E0433]: failed to resolve: use of undeclared type `WindowEvent`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:258:25
|
258 | WindowEvent::KeyboardInput { input, .. } => match input {
| ^^^^^^^^^^^ use of undeclared type `WindowEvent`
error[E0433]: failed to resolve: use of undeclared type `ElementState`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:260:40
|
260 | ... state: ElementState::Pressed,
| ^^^^^^^^^^^^ use of undeclared type `ElementState`
error[E0433]: failed to resolve: use of undeclared type `VirtualKeyCode`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:261:55
|
261 | ... virtual_keycode: Some(VirtualKeyCode::Escape),
| ^^^^^^^^^^^^^^ use of undeclared type `VirtualKeyCode`
error[E0433]: failed to resolve: use of undeclared type `ControlFlow`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:263:50
|
263 | ... } => *control_flow = ControlFlow::Exit,
| ^^^^^^^^^^^ use of undeclared type `ControlFlow`
error[E0433]: failed to resolve: use of undeclared type `WindowEvent`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:266:25
|
266 | WindowEvent::Resized(physical_size) => {
| ^^^^^^^^^^^ use of undeclared type `WindowEvent`
error[E0433]: failed to resolve: use of undeclared type `WindowEvent`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:269:25
|
269 | WindowEvent::ScaleFactorChanged { new_inner_size, .. } => {
| ^^^^^^^^^^^ use of undeclared type `WindowEvent`
error[E0433]: failed to resolve: use of undeclared type `Event`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:277:13
|
277 | Event::RedrawRequested(_) => {
| ^^^^^ use of undeclared type `Event`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:282:25
|
282 | Err(wgpu::SwapChainError::Lost) => state.resize(state.size),
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:284:25
|
284 | Err(wgpu::SwapChainError::OutOfMemory) => *control_flow = ControlFlow::Exit,
| ^^^^ use of undeclared crate or module `wgpu`
error[E0433]: failed to resolve: use of undeclared type `ControlFlow`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:284:79
|
284 | Err(wgpu::SwapChainError::OutOfMemory) => *control_flow = ControlFlow::Exit,
| ^^^^^^^^^^^ use of undeclared type `ControlFlow`
error[E0433]: failed to resolve: use of undeclared type `Event`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:289:13
|
289 | Event::MainEventsCleared => {
| ^^^^^ use of undeclared type `Event`
error[E0412]: cannot find type `Window` in this scope
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:78:27
|
78 | async fn new(window: &Window) -> Self {
| ^^^^^^ not found in this scope
|
help: consider importing this struct
|
1 | use futures::io::Window;
|
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:83:30
|
83 | let instance = wgpu::Instance::new(wgpu::BackendBit::PRIMARY);
| ^^^^^^^^ not found in `wgpu`
|
help: consider importing this struct
|
1 | use wgc::instance::Instance;
|
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:96:37
|
96 | features: wgpu::Features::empty(),
| ^^^^^^^^ not found in `wgpu`
|
help: consider importing this struct
|
1 | use wgt::Features;
|
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:97:35
|
97 | limits: wgpu::Limits::default(),
| ^^^^^^ not found in `wgpu`
|
help: consider importing this struct
|
1 | use wgt::Limits;
|
error[E0412]: cannot find type `WindowEvent` in this scope
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:194:33
|
194 | fn input(&mut self, event: &WindowEvent) -> bool {
| ^^^^^^^^^^^ not found in this scope
error[E0433]: failed to resolve: use of undeclared crate or module `wgpu`
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:215:37
|
215 | load: wgpu::LoadOp::Clear(wgpu::Color {
| ^^^^^^ not found in `wgpu`
|
help: consider importing this enum
|
1 | use wgc::command::LoadOp;
|
error[E0422]: cannot find struct, variant or union type `KeyboardInput` in this scope
--> C:\Users\Tnze\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\wgpu-0.6.2\src\lib.rs:259:29
|
259 | ... KeyboardInput {
| ^^^^^^^^^^^^^ not found in this scope
error: aborting due to 84 previous errors
Some errors have detailed explanations: E0412, E0422, E0432, E0433.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `wgpu`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
The text was updated successfully, but these errors were encountered:
I can't seem to reproduce this issue. The only thing I can think of is that it looks like you are using a mirror or third party registry. Try using crates.io.
My cargo version:
Toolchain:
log:
The text was updated successfully, but these errors were encountered: