mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Update dependencies
- Bumped to 0.10.0
This commit is contained in:
+3
-3
@@ -4,7 +4,7 @@ name = "sdl2"
|
||||
description = "SDL2 bindings for Rust"
|
||||
repository = "https://github.com/AngryLawyer/rust-sdl2"
|
||||
documentation = "http://www.rust-ci.org/AngryLawyer/rust-sdl2/doc/sdl2/"
|
||||
version = "0.9.1"
|
||||
version = "0.10.0"
|
||||
license = "MIT"
|
||||
authors = [ "Tony Aldridge <tony@angry-lawyer.com>" ]
|
||||
keywords = ["SDL", "windowing", "graphics"]
|
||||
@@ -17,13 +17,13 @@ path = "src/sdl2/lib.rs"
|
||||
[dependencies]
|
||||
num = "0.1"
|
||||
bitflags = "0.3.2"
|
||||
libc = "0.1"
|
||||
libc = "0.2"
|
||||
rand = "0.3"
|
||||
|
||||
[dependencies.sdl2-sys]
|
||||
|
||||
path = "sdl2-sys"
|
||||
version = "0.6.2"
|
||||
version = "0.7.0"
|
||||
|
||||
[features]
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ download through Crates.io:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
sdl2 = "0.9"
|
||||
sdl2 = "0.10"
|
||||
```
|
||||
|
||||
Alternatively, pull it from GitHub
|
||||
|
||||
@@ -20,8 +20,8 @@ pub fn main() {
|
||||
let mut texture = renderer.create_texture_streaming(PixelFormatEnum::RGB24, (256, 256)).unwrap();
|
||||
// Create a red-green gradient
|
||||
texture.with_lock(None, |buffer: &mut [u8], pitch: usize| {
|
||||
for y in (0..256) {
|
||||
for x in (0..256) {
|
||||
for y in 0..256 {
|
||||
for x in 0..256 {
|
||||
let offset = y*pitch + x*3;
|
||||
buffer[offset + 0] = x as u8;
|
||||
buffer[offset + 1] = y as u8;
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
name = "sdl2-sys"
|
||||
description = "Raw SDL2 bindings for Rust, used internally rust-sdl2"
|
||||
repository = "https://github.com/AngryLawyer/rust-sdl2"
|
||||
version = "0.6.2"
|
||||
version = "0.7.0"
|
||||
authors = ["Tony Aldridge <tony@angry-lawyer.com>"]
|
||||
license = "MIT"
|
||||
links = "SDL2"
|
||||
@@ -15,7 +15,7 @@ path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
num = "0.1"
|
||||
libc = "0.1"
|
||||
libc = "0.2.1"
|
||||
|
||||
[build-dependencies.pkg-config]
|
||||
version = "0.3"
|
||||
|
||||
Reference in New Issue
Block a user