diff --git a/Cargo.toml b/Cargo.toml index f63a108..6b8989a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ maintenance = { status = "actively-developed" } [dependencies] thiserror = "1.0.15" wgpu = "0.5.0" -futures = "0.3" +futures-executor = "0.3" [dev-dependencies] pixels-mocks = { path = "pixels-mocks" } diff --git a/src/lib.rs b/src/lib.rs index 8a0abe7..a82f42b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -426,13 +426,13 @@ impl<'req> PixelsBuilder<'req> { /// Returns an error when a [`wgpu::Adapter`] cannot be found. pub fn build(self) -> Result { // TODO: Use `options.pixel_aspect_ratio` to stretch the scaled texture - let adapter = futures::executor::block_on(wgpu::Adapter::request( + let adapter = futures_executor::block_on(wgpu::Adapter::request( &self.request_adapter_options, wgpu::BackendBit::PRIMARY, )) .ok_or(Error::AdapterNotFound)?; let (device, queue) = - futures::executor::block_on(adapter.request_device(&self.device_descriptor)); + futures_executor::block_on(adapter.request_device(&self.device_descriptor)); let device = Rc::new(device); let queue = Rc::new(RefCell::new(queue));