@@ -4,13 +4,10 @@ use hashbrown::{HashMap, HashSet};
44use stacks_common:: consts:: CHAIN_ID_TESTNET ;
55use stacks_common:: types:: StacksEpochId ;
66
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 } ;
108use crate :: vm:: ast:: { build_ast_with_rules, ASTRules } ;
119use crate :: vm:: contexts:: GlobalContext ;
1210use crate :: vm:: costs:: LimitedCostTracker ;
13- #[ cfg( feature = "rusqlite" ) ]
1411use crate :: vm:: database:: MemoryBackingStore ;
1512use crate :: vm:: docs:: { get_input_type_string, get_output_type_string, get_signature} ;
1613use crate :: vm:: types:: { FunctionType , QualifiedContractIdentifier , Value } ;
@@ -63,7 +60,6 @@ fn make_func_ref(func_name: &str, func_type: &FunctionType, description: &str) -
6360 }
6461}
6562
66- #[ cfg( feature = "rusqlite" ) ]
6763#[ allow( clippy:: expect_used) ]
6864fn get_constant_value ( var_name : & str , contract_content : & str ) -> Value {
6965 let to_eval = format ! ( "{}\n {}" , contract_content, var_name) ;
@@ -72,7 +68,6 @@ fn get_constant_value(var_name: &str, contract_content: &str) -> Value {
7268 . expect ( "BUG: failed to return constant value" )
7369}
7470
75- #[ cfg( feature = "rusqlite" ) ]
7671fn doc_execute ( program : & str ) -> Result < Option < Value > , vm:: Error > {
7772 let contract_id = QualifiedContractIdentifier :: transient ( ) ;
7873 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> {
9994 } )
10095}
10196
102- #[ cfg( feature = "rusqlite" ) ]
10397#[ allow( clippy:: expect_used) ]
10498pub fn make_docs (
10599 content : & str ,
@@ -185,7 +179,6 @@ pub fn make_docs(
185179
186180/// Produce a set of documents for multiple contracts, supplied as a list of `(contract_name, contract_content)` pairs,
187181/// and a map from `contract_name` to corresponding `ContractSupportDocs`
188- #[ cfg( feature = "rusqlite" ) ]
189182pub fn produce_docs_refs < A : AsRef < str > , B : AsRef < str > > (
190183 contracts : & [ ( A , B ) ] ,
191184 support_docs : & HashMap < & str , ContractSupportDocs > ,
0 commit comments