Skip to content

Commit

Permalink
Remove pixels-dragons (#114)
Browse files Browse the repository at this point in the history
- I don't want to publish this crate.
- Can't publish pixels 0.2.0 if it depends on an internal unpublished crate.
- This requires allowing unsafe code, and removing the safety dance badge.
  • Loading branch information
parasyte authored Aug 21, 2020
1 parent 265ba2e commit b6526c2
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 38 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ include = [
]

[dependencies]
pixels-dragons = { path = "internals/pixels-dragons" }
pollster = "0.2"
raw-window-handle = "0.3"
thiserror = "1.0"
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[![CI](https://github.com/parasyte/pixels/workflows/CI/badge.svg)](https://github.com/parasyte/pixels "CI")
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/parasyte/pixels.svg)](http://isitmaintained.com/project/parasyte/pixels "Average time to resolve an issue")
[![Percentage of issues still open](http://isitmaintained.com/badge/open/parasyte/pixels.svg)](http://isitmaintained.com/project/parasyte/pixels "Percentage of issues still open")
[![Unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/ "Unsafe forbidden")

![Pixels Logo](img/pixels.png)

Expand Down
9 changes: 0 additions & 9 deletions internals/pixels-dragons/Cargo.toml

This file was deleted.

24 changes: 0 additions & 24 deletions internals/pixels-dragons/src/lib.rs

This file was deleted.

4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@
//! 4. `wgpu` default power preference (usually low power)
#![deny(clippy::all)]
#![forbid(unsafe_code)]

pub use crate::renderers::ScalingRenderer;
pub use raw_window_handle;
pub use wgpu;

use pixels_dragons::surface_from_window_handle;
use raw_window_handle::HasRawWindowHandle;
use std::env;
use thiserror::Error;
Expand Down Expand Up @@ -612,7 +610,7 @@ impl<'req, 'win, W: HasRawWindowHandle> PixelsBuilder<'req, 'win, W> {
let instance = wgpu::Instance::new(self.backend);

// TODO: Use `options.pixel_aspect_ratio` to stretch the scaled texture
let surface = surface_from_window_handle(&instance, self.surface_texture.window);
let surface = unsafe { instance.create_surface(self.surface_texture.window) };
let compatible_surface = Some(&surface);
let adapter = instance.request_adapter(&self.request_adapter_options.map_or_else(
|| wgpu::RequestAdapterOptions {
Expand Down

0 comments on commit b6526c2

Please sign in to comment.