Skip to content

Commit

Permalink
Slim dependencies (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
parasyte committed Apr 14, 2020
1 parent f874d97 commit 774b749
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,13 @@ impl<'req> PixelsBuilder<'req> {
/// Returns an error when a [`wgpu::Adapter`] cannot be found.
pub fn build(self) -> Result<Pixels, Error> {
// 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));

Expand Down

0 comments on commit 774b749

Please sign in to comment.