@@ -14,7 +14,9 @@ mod memory;
14
14
mod suspend_conditions;
15
15
mod table;
16
16
17
+ #[ cfg( feature = "async" ) ]
17
18
pub use suspend_conditions:: * ;
19
+
18
20
pub ( crate ) use { data:: * , element:: * , function:: * , global:: * , memory:: * , table:: * } ;
19
21
20
22
// global store id counter
@@ -40,6 +42,7 @@ pub struct Store {
40
42
// and (less obviously) to host functions called from store - for calling wasm callbacks and propagating this config to them
41
43
// (or just complying with suspend conditions themselves)
42
44
// alternatively it could be passed to function handles and passend into function context
45
+ #[ cfg( feature = "async" ) ]
43
46
pub ( crate ) suspend_cond : SuspendConditions ,
44
47
}
45
48
@@ -96,6 +99,7 @@ impl Default for Store {
96
99
module_instances : Vec :: new ( ) ,
97
100
data : StoreData :: default ( ) ,
98
101
runtime : Runtime :: Default ,
102
+ #[ cfg( feature = "async" ) ]
99
103
suspend_cond : SuspendConditions :: default ( ) ,
100
104
}
101
105
}
@@ -492,6 +496,7 @@ fn get_pair_mut<T>(slice: &mut [T], i: usize, j: usize) -> Option<(&mut T, &mut
492
496
}
493
497
494
498
// suspend_conditions-related functions
499
+ #[ cfg( feature = "async" ) ]
495
500
impl Store {
496
501
/// sets suspend conditions for store
497
502
pub fn set_suspend_conditions ( & mut self , val : SuspendConditions ) {
0 commit comments