File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ use serde_json::json;
24
24
use stacks_common:: consts:: CHAIN_ID_TESTNET ;
25
25
use stacks_common:: types:: chainstate:: StacksBlockId ;
26
26
use stacks_common:: types:: StacksEpochId ;
27
- use wasmtime:: { Engine , Linker } ;
27
+ #[ cfg( feature = "clarity-wasm" ) ]
28
+ use wasmtime:: Engine ;
28
29
29
30
use super :: analysis:: { self , ContractAnalysis } ;
30
31
#[ cfg( feature = "clarity-wasm" ) ]
@@ -207,6 +208,7 @@ pub struct GlobalContext<'a> {
207
208
/// This is the chain ID of the transaction
208
209
pub chain_id : u32 ,
209
210
pub eval_hooks : Option < Vec < & ' a mut dyn EvalHook > > ,
211
+ #[ cfg( feature = "clarity-wasm" ) ]
210
212
pub engine : Engine ,
211
213
}
212
214
@@ -1655,6 +1657,7 @@ impl<'a> GlobalContext<'a> {
1655
1657
cost_track : LimitedCostTracker ,
1656
1658
epoch_id : StacksEpochId ,
1657
1659
) -> GlobalContext {
1660
+ #[ cfg( feature = "clarity-wasm" ) ]
1658
1661
let engine = Engine :: default ( ) ;
1659
1662
1660
1663
GlobalContext {
@@ -1667,6 +1670,7 @@ impl<'a> GlobalContext<'a> {
1667
1670
epoch_id,
1668
1671
chain_id,
1669
1672
eval_hooks : None ,
1673
+ #[ cfg( feature = "clarity-wasm" ) ]
1670
1674
engine,
1671
1675
}
1672
1676
}
You can’t perform that action at this time.
0 commit comments