File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -26,3 +26,4 @@ byond-515-1621 = [
26
26
" byondapi-sys/byond-515-1621" ,
27
27
]
28
28
byond-516-1651 = [" byondapi-sys/byond-516-1651" ]
29
+ opendream = [" byondapi-sys/opendream" ]
Original file line number Diff line number Diff line change @@ -27,3 +27,4 @@ doxygen-rs = "0.4"
27
27
default = [" byond-516-1651" ]
28
28
byond-515-1621 = []
29
29
byond-516-1651 = []
30
+ opendream = []
Original file line number Diff line number Diff line change 7
7
) ]
8
8
use std:: ops:: Deref ;
9
9
10
- #[ cfg( not( target_pointer_width = "32" ) ) ]
10
+ #[ cfg( all ( not( target_pointer_width = "32" ) , not ( feature = "opendream" ) ) ) ]
11
11
compile_error ! ( "BYOND API only functions with 32-bit targets" ) ;
12
12
13
- #[ cfg( not( target_arch = "x86" ) ) ]
13
+ #[ cfg( all ( not( target_arch = "x86" ) , not ( feature = "opendream" ) ) ) ]
14
14
compile_error ! ( "BYOND API only functions on x86 targets" ) ;
15
15
16
- #[ cfg( not( any( target_os = "linux" , target_os = "windows" ) ) ) ]
16
+ #[ cfg( all(
17
+ not( any( target_os = "linux" , target_os = "windows" ) ) ,
18
+ not( feature = "opendream" )
19
+ ) ) ]
17
20
compile_error ! ( "BYOND API only supports Windows and Linux" ) ;
18
21
19
22
// Include byondapi-c bindings (generated by build.rs)
You can’t perform that action at this time.
0 commit comments