@@ -4,13 +4,10 @@ use hashbrown::{HashMap, HashSet};
4
4
use stacks_common:: consts:: CHAIN_ID_TESTNET ;
5
5
use stacks_common:: types:: StacksEpochId ;
6
6
7
- #[ cfg( feature = "rusqlite" ) ]
8
- use crate :: vm:: analysis:: mem_type_check;
9
- use crate :: vm:: analysis:: ContractAnalysis ;
7
+ use crate :: vm:: analysis:: { mem_type_check, ContractAnalysis } ;
10
8
use crate :: vm:: ast:: { build_ast_with_rules, ASTRules } ;
11
9
use crate :: vm:: contexts:: GlobalContext ;
12
10
use crate :: vm:: costs:: LimitedCostTracker ;
13
- #[ cfg( feature = "rusqlite" ) ]
14
11
use crate :: vm:: database:: MemoryBackingStore ;
15
12
use crate :: vm:: docs:: { get_input_type_string, get_output_type_string, get_signature} ;
16
13
use crate :: vm:: types:: { FunctionType , QualifiedContractIdentifier , Value } ;
@@ -63,7 +60,6 @@ fn make_func_ref(func_name: &str, func_type: &FunctionType, description: &str) -
63
60
}
64
61
}
65
62
66
- #[ cfg( feature = "rusqlite" ) ]
67
63
#[ allow( clippy:: expect_used) ]
68
64
fn get_constant_value ( var_name : & str , contract_content : & str ) -> Value {
69
65
let to_eval = format ! ( "{}\n {}" , contract_content, var_name) ;
@@ -72,7 +68,6 @@ fn get_constant_value(var_name: &str, contract_content: &str) -> Value {
72
68
. expect ( "BUG: failed to return constant value" )
73
69
}
74
70
75
- #[ cfg( feature = "rusqlite" ) ]
76
71
fn doc_execute ( program : & str ) -> Result < Option < Value > , vm:: Error > {
77
72
let contract_id = QualifiedContractIdentifier :: transient ( ) ;
78
73
let mut contract_context = ContractContext :: new ( contract_id. clone ( ) , ClarityVersion :: Clarity2 ) ;
@@ -99,7 +94,6 @@ fn doc_execute(program: &str) -> Result<Option<Value>, vm::Error> {
99
94
} )
100
95
}
101
96
102
- #[ cfg( feature = "rusqlite" ) ]
103
97
#[ allow( clippy:: expect_used) ]
104
98
pub fn make_docs (
105
99
content : & str ,
@@ -185,7 +179,6 @@ pub fn make_docs(
185
179
186
180
/// Produce a set of documents for multiple contracts, supplied as a list of `(contract_name, contract_content)` pairs,
187
181
/// and a map from `contract_name` to corresponding `ContractSupportDocs`
188
- #[ cfg( feature = "rusqlite" ) ]
189
182
pub fn produce_docs_refs < A : AsRef < str > , B : AsRef < str > > (
190
183
contracts : & [ ( A , B ) ] ,
191
184
support_docs : & HashMap < & str , ContractSupportDocs > ,
0 commit comments