File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ${{ matrix.os }}
13
13
strategy :
14
14
matrix :
15
+ feature_flags : [byond-515-1621, byond-516-1651]
16
+ os : [ubuntu-latest, windows-latest]
15
17
include :
16
18
- os : ubuntu-latest
17
19
target_name : i686-unknown-linux-gnu
39
41
with :
40
42
toolchain : stable
41
43
command : check
42
- args : --target ${{ matrix.target_name }}
44
+ args : --target ${{ matrix.target_name }} --no-default-features --features ${{ matrix.feature_flags }}
43
45
44
46
check_fmt :
45
47
name : Check format
Original file line number Diff line number Diff line change @@ -9,7 +9,12 @@ edition = "2021"
9
9
crate-type = [" cdylib" ]
10
10
11
11
[dependencies ]
12
- byondapi = { path = " ../byondapi-rs" }
12
+ byondapi = { path = " ../byondapi-rs" , default-features = false }
13
13
tempfile = " 3.17.1"
14
14
cargo_metadata = " 0.19.1"
15
15
eyre = " 0.6.12"
16
+
17
+ [features ]
18
+ default = [" byond-516-1651" ]
19
+ byond-515-1621 = [" byondapi/byond-515-1621" ,]
20
+ byond-516-1651 = [" byondapi/byond-516-1651" ]
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ impl ByondValue {
117
117
118
118
/// Replaces whatever is currently in this value with a string that's pointed to by the stringid
119
119
/// # DO NOT PASS STRINGIDS THAT ARE NOT RETURNED BY [`crate::byond_string::str_id_of`]
120
+ #[ cfg( feature = "byond-516-1651" ) ]
120
121
pub fn set_strid ( & mut self , strid : u4c ) {
121
122
unsafe { byond ( ) . ByondValue_SetStrId ( & mut self . 0 , strid) }
122
123
}
@@ -249,6 +250,7 @@ impl ByondValue {
249
250
unsafe { byond ( ) . ByondValue_DecRef ( & self . 0 ) }
250
251
}
251
252
253
+ #[ cfg( feature = "byond-516-1651" ) ]
252
254
pub fn decrement_tempref ( & mut self ) {
253
255
unsafe { byond ( ) . ByondValue_DecTempRef ( & self . 0 ) }
254
256
}
You can’t perform that action at this time.
0 commit comments