Safety dance (#50)

* Update Cargo.lock

* Forbid unsafe

* Update README
This commit is contained in:
Jay Oster 2019-11-19 22:10:08 -08:00 committed by GitHub
parent c5718cc041
commit 17c94574a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

2
Cargo.lock generated
View file

@ -798,7 +798,7 @@ dependencies = [
[[package]]
name = "pixels"
version = "0.0.2"
version = "0.0.3"
dependencies = [
"beryllium 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)",

View file

@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/parasyte/pixels.svg?branch=master)](https://travis-ci.org/parasyte/pixels)
[![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/)
![Pixels Logo](img/pixels.png)
@ -20,6 +21,7 @@ Rapidly prototype a simple 2D game, pixel-based animations, software renderers,
## Examples
- [Conway's Game of Life](./examples/conway)
- [Minimal example with SDL2](./examples/minimal-sdl2)
- [Minimal example with `winit`](./examples/minimal-winit)
- [Pixel Invaders](./examples/invaders)

View file

@ -10,6 +10,7 @@
//! [`winit`](https://crates.io/crates/winit) is a good place to start.
#![deny(clippy::all)]
#![forbid(unsafe_code)]
use std::cell::RefCell;
use std::error::Error as StdError;