Skip to content

Commit 647eaa8

Browse files
committed
bump api version
1 parent 6bed6e9 commit 647eaa8

File tree

6 files changed

+739
-11
lines changed

6 files changed

+739
-11
lines changed

crates/byondapi-rs/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "byondapi"
3-
version = "0.5.12"
3+
version = "0.5.13"
44
authors = ["tigercat2000 <[email protected]>"]
55
edition = "2021"
66
description = "Idiomatic Rust bindings for BYONDAPI"
@@ -20,9 +20,9 @@ inventory = "0.3.19"
2020
num_enum = "0.7.3"
2121

2222
[features]
23-
default = ["byond-516-1648"]
23+
default = ["byond-516-1651"]
2424
byond-515-1621 = [
2525
"byondapi-macros/old-crash-workaround",
2626
"byondapi-sys/byond-515-1621",
2727
]
28-
byond-516-1648 = ["byondapi-sys/byond-516-1648"]
28+
byond-516-1651 = ["byondapi-sys/byond-516-1651"]

crates/byondapi-rs/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ pub use inventory;
1313
#[macro_use]
1414
pub mod error;
1515
pub mod map;
16-
#[cfg(feature = "byond-516-1648")]
16+
#[cfg(feature = "byond-516-1651")]
1717
pub mod pixloc;
18-
#[cfg(feature = "byond-516-1648")]
18+
#[cfg(feature = "byond-516-1651")]
1919
pub mod runtime;
2020
pub use error::Error;
2121

crates/byondapi-rs/src/value/functions.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ impl ByondValue {
243243
unsafe { byond().ByondValue_DecRef(&self.0) }
244244
}
245245

246+
pub fn decrement_tempref(&mut self) {
247+
unsafe { byond().ByondValue_DecTempRef(&self.0) }
248+
}
249+
246250
pub fn get_refcount(&self) -> Result<u32, Error> {
247251
let mut result = 0u32;
248252
unsafe { map_byond_error!(byond().Byond_Refcount(&self.0, &mut result))? };

crates/byondapi-sys/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "byondapi-sys"
3-
version = "0.12.2"
3+
version = "0.12.3"
44
authors = ["tigercat2000 <[email protected]>"]
55
edition = "2021"
66
description = "Raw bindgen bindings for byondapi"
@@ -24,6 +24,6 @@ bindgen = "0.71"
2424
doxygen-rs = "0.4"
2525

2626
[features]
27-
default = ["byond-516-1648"]
27+
default = ["byond-516-1651"]
2828
byond-515-1621 = []
29-
byond-516-1648 = []
29+
byond-516-1651 = []

0 commit comments

Comments
 (0)