Skip to content

Commit e255864

Browse files
committed
[General] Bump version
1 parent 716f56c commit e255864

File tree

6 files changed

+18
-8
lines changed

6 files changed

+18
-8
lines changed

DECISIONS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
11
Document where I put all the little design decisions that go into this library.
2+
3+
1. Allocations
4+
A few functiosn in raylib return a buffer that should be deallocated by the user. Previously, we copied this data into a Vector and then freed with libc::free.
5+
6+
If the user had a custom alocator or some other strange linking strategy, this would free an invalid pointer.
7+
8+
Now we cast buffers to `ManuallyDrop<Box<[T]>>`
9+
This allows us to created a box slice and have all the crazy iterator shenanigans users love, without invoking a copy allocation.
10+
11+
We use `Box::leak` and `ManuallyDrop::take` to get the slice and then cast that to a `* void` for raylibs various `UnloadX` functions. If an `UnloadX` function doesn't exist, we use the `MemFree` function to return memory using the same allocator as raylib.

raylib-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "raylib-sys"
3-
version = "3.0.0"
3+
version = "3.5.0"
44
authors = ["DeltaPHC <[email protected]>"]
55
license = "Zlib"
66
description = "Raw FFI bindings for Raylib"

raylib-test/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "raylib-test"
3-
version = "3.0.0"
3+
version = "3.5.0"
44
authors = ["David Ayeke"]
55
edition = "2018"
66
license = "Zlib"
@@ -9,5 +9,5 @@ repository = "https://github.com/deltaphc/raylib-rs"
99

1010

1111
[dependencies]
12-
raylib = { version = "3.0", path = "../raylib" }
12+
raylib = { version = "3.5", path = "../raylib" }
1313
lazy_static = "1.2.0"

raylib/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "raylib"
3-
version = "3.0.0"
3+
version = "3.5.0"
44
authors = ["DeltaPHC <[email protected]>"]
55
license = "Zlib"
66
readme = "../README.md"
@@ -12,7 +12,7 @@ categories = ["api-bindings", "game-engines", "graphics"]
1212
edition = "2018"
1313

1414
[dependencies]
15-
raylib-sys = { version = "3.0", path = "../raylib-sys" }
15+
raylib-sys = { version = "3.5", path = "../raylib-sys" }
1616
libc = "0.2.45"
1717
lazy_static = "1.2.0"
1818

samples/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "raylib-examples"
3-
version = "3.0.0"
3+
version = "3.5.0"
44
authors = ["David Ayeke"]
55
edition = "2018"
66
license = "Zlib"

showcase/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "raylib-showcase"
3-
version = "3.0.0"
3+
version = "3.5.0"
44
authors = ["David Ayeke"]
55
edition = "2018"
66
license = "Zlib"
@@ -10,4 +10,4 @@ repository = "https://github.com/deltaphc/raylib-rs"
1010
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1111

1212
[dependencies]
13-
raylib = { version = "3.0", path = "../raylib" }
13+
raylib = { version = "3.5", path = "../raylib" }

0 commit comments

Comments
 (0)