Skip to content

Commit

Permalink
Make allocator unsafe and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
DelSkayn committed Feb 16, 2024
1 parent 8d81686 commit 09a199c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rquickjs"
version = "0.4.3"
version = "0.5.0"
authors = ["Mees Delzenne <[email protected]>", "K. <[email protected]>"]
edition = "2021"
rust-version = "1.65"
Expand All @@ -12,11 +12,11 @@ categories = ["api-bindings"]
repository = "https://github.com/DelSkayn/rquickjs.git"

[dependencies.rquickjs-core]
version = "0.4.3"
version = "0.5.0"
path = "core"

[dependencies.rquickjs-macro]
version = "0.4.3"
version = "0.5.0"
path = "macro"
optional = true

Expand Down
4 changes: 2 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rquickjs-core"
version = "0.4.3"
version = "0.5.0"
authors = ["Mees Delzenne <[email protected]>", "K. <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -31,7 +31,7 @@ version = "0.4"
optional = true

[dependencies.rquickjs-sys]
version = "0.4.3"
version = "0.5.0"
path = "../sys"

[dependencies.dlopen]
Expand Down
2 changes: 1 addition & 1 deletion core/src/allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub trait Allocator {
unsafe fn realloc(&mut self, ptr: RawMemPtr, new_size: usize) -> RawMemPtr;

/// Get usable size of allocated memory region
fn usable_size(ptr: RawMemPtr) -> usize
unsafe fn usable_size(ptr: RawMemPtr) -> usize
where
Self: Sized;
}
Expand Down
6 changes: 3 additions & 3 deletions macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rquickjs-macro"
version = "0.4.3"
version = "0.5.0"
authors = ["K. <[email protected]>", "Mees Delzenne <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -37,15 +37,15 @@ optional = true

[dependencies.rquickjs-core]
path = "../core"
version = "0.4.3"
version = "0.5.0"
features = ["loader"]

[dev-dependencies.difference]
version = "2"

[dev-dependencies.rquickjs]
path = ".."
version = "0.4.3"
version = "0.5.0"
features = ["macro", "classes", "properties", "futures","phf"]

[dev-dependencies.async-std]
Expand Down
2 changes: 1 addition & 1 deletion sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rquickjs-sys"
version = "0.4.3"
version = "0.5.0"
authors = ["Mees Delzenne <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down

0 comments on commit 09a199c

Please sign in to comment.