pixels/Cargo.toml
fuckwit c5718cc041 Remove Unsafe in macro.rs (#43)
* remove unsafe slice::from_raw_parts

this should be a way to remove the unsafe code in the Spirv Deref impl.
Not sure how it affects performance yet.
I will take a look at the bytecode and see if maybe the compiler is
smart enough to optimize that away.

* change renderers to accomodate new Deref

Let the deref return a `Vec<u32>` instead of a slice reference. This
should not hurt performance too much as this will be done a finite
amount of times att startup.

* replaced deref with normal impl

* fixed endianness, fixed offset + rustfmt

* bump version

* fixed clippy lints

* respect the target endianness

* use wgpu::read_spirv()

* remove an unneccessary allocation of a vec

* move borrow into macro
2019-11-19 21:27:55 -08:00

79 lines
2.1 KiB
TOML

[package]
name = "pixels"
description = "A tiny library providing a GPU-powered pixel frame buffer."
version = "0.0.3"
authors = ["Jay Oster <jay@kodewerx.org>"]
edition = "2018"
repository = "https://github.com/parasyte/pixels"
readme = "README.md"
keywords = ["pixels", "2D", "GPU", "framebuffer"]
categories = ["graphics", "rendering"]
license = "MIT"
include = [
"/Cargo.*",
"/LICENSE",
"/README.md",
"/img/pixels.png",
"/shaders/*.spv",
"/src/**/*",
]
[badges]
travis-ci = { repository = "parasyte/pixels" }
maintenance = { status = "actively-developed" }
[dependencies]
wgpu = "0.4"
# These are only used by the examples, and enabled with features
# See: https://github.com/rust-lang/cargo/issues/1982
beryllium = { version = " 0.1", optional = true }
byteorder = { version = "1.3", optional = true }
env_logger = { version = "0.7", optional = true }
getrandom = { version = "0.1", optional = true }
gilrs = { version = "0.7", optional = true }
line_drawing = { version = "0.8", optional = true }
log = { version = "0.4", features = ["release_max_level_warn"], optional = true }
randomize = { version = "3.0", optional = true }
simple-invaders = { path = "simple-invaders", optional = true }
winit = { version = "0.20.0-alpha4", optional = true }
winit_input_helper = { version = "0.4.0-alpha4", optional = true }
[dev-dependencies]
pixels-mocks = { path = "pixels-mocks" }
winit = "0.20.0-alpha4"
[[example]]
name = "conway"
required-features = ["conway"]
[[example]]
name = "invaders"
required-features = ["invaders"]
[[example]]
name = "minimal-sdl2"
required-features = ["minimal-sdl2"]
[[example]]
name = "minimal-winit"
required-features = ["minimal-winit"]
[features]
default = []
log-deps = ["env_logger", "log"]
random-deps = ["byteorder", "getrandom", "randomize"]
sdl2-deps = ["beryllium"]
winit-deps = ["winit", "winit_input_helper"]
conway = ["line_drawing", "log-deps", "random-deps", "winit-deps"]
invaders = ["gilrs", "log-deps", "random-deps", "simple-invaders", "winit-deps"]
minimal-sdl2 = ["log-deps", "sdl2-deps"]
minimal-winit = ["log-deps", "winit-deps"]
[workspace]
members = [
"pixels-mocks",
"simple-invaders",
]