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