1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
pub mod compat;
pub mod error;
pub mod surface;
pub mod time_value;
pub mod types;
#[cfg(feature = "valuation")]
pub mod valuation;
#[cfg(feature = "credit")]
pub mod credit;
#[cfg(feature = "pe")]
pub mod pe;
#[cfg(feature = "portfolio")]
pub mod portfolio;
#[cfg(feature = "ma")]
pub mod ma;
#[cfg(feature = "jurisdiction")]
pub mod jurisdiction;
#[cfg(feature = "scenarios")]
pub mod scenarios;
#[cfg(feature = "fixed_income")]
pub mod fixed_income;
#[cfg(feature = "derivatives")]
pub mod derivatives;
#[cfg(feature = "three_statement")]
pub mod three_statement;
#[cfg(feature = "monte_carlo")]
pub mod monte_carlo;
#[cfg(feature = "quant_risk")]
pub mod quant_risk;
#[cfg(feature = "restructuring")]
pub mod restructuring;
#[cfg(feature = "real_assets")]
pub mod real_assets;
#[cfg(feature = "fx_commodities")]
pub mod fx_commodities;
#[cfg(feature = "securitization")]
pub mod securitization;
#[cfg(feature = "venture")]
pub mod venture;
#[cfg(feature = "esg")]
pub mod esg;
#[cfg(feature = "regulatory")]
pub mod regulatory;
#[cfg(feature = "insurance")]
pub mod insurance;
#[cfg(feature = "private_credit")]
pub mod private_credit;
#[cfg(feature = "fpa")]
pub mod fpa;
#[cfg(feature = "wealth")]
pub mod wealth;
#[cfg(feature = "crypto")]
pub mod crypto;
#[cfg(feature = "trade_finance")]
pub mod trade_finance;
#[cfg(feature = "structured_products")]
pub mod structured_products;
#[cfg(feature = "municipal")]
pub mod municipal;
#[cfg(feature = "credit_derivatives")]
pub mod credit_derivatives;
#[cfg(feature = "convertibles")]
pub mod convertibles;
#[cfg(feature = "lease_accounting")]
pub mod lease_accounting;
#[cfg(feature = "pension")]
pub mod pension;
#[cfg(feature = "sovereign")]
pub mod sovereign;
#[cfg(feature = "real_options")]
pub mod real_options;
#[cfg(feature = "equity_research")]
pub mod equity_research;
#[cfg(feature = "commodity_trading")]
pub mod commodity_trading;
#[cfg(feature = "quant_strategies")]
pub mod quant_strategies;
#[cfg(feature = "treasury")]
pub mod treasury;
#[cfg(feature = "infrastructure")]
pub mod infrastructure;
#[cfg(feature = "behavioral")]
pub mod behavioral;
#[cfg(feature = "performance_attribution")]
pub mod performance_attribution;
#[cfg(feature = "credit_portfolio")]
pub mod credit_portfolio;
#[cfg(feature = "macro_economics")]
pub mod macro_economics;
#[cfg(feature = "compliance")]
pub mod compliance;
#[cfg(feature = "onshore_structures")]
pub mod onshore_structures;
#[cfg(feature = "offshore_structures")]
pub mod offshore_structures;
#[cfg(feature = "transfer_pricing")]
pub mod transfer_pricing;
#[cfg(feature = "tax_treaty")]
pub mod tax_treaty;
#[cfg(feature = "fatca_crs")]
pub mod fatca_crs;
#[cfg(feature = "substance_requirements")]
pub mod substance_requirements;
#[cfg(feature = "regulatory_reporting")]
pub mod regulatory_reporting;
#[cfg(feature = "aml_compliance")]
pub mod aml_compliance;
#[cfg(feature = "volatility_surface")]
pub mod volatility_surface;
#[cfg(feature = "portfolio_optimization")]
pub mod portfolio_optimization;
#[cfg(feature = "risk_budgeting")]
pub mod risk_budgeting;
#[cfg(feature = "market_microstructure")]
pub mod market_microstructure;
#[cfg(feature = "interest_rate_models")]
pub mod interest_rate_models;
#[cfg(feature = "mortgage_analytics")]
pub mod mortgage_analytics;
#[cfg(feature = "inflation_linked")]
pub mod inflation_linked;
#[cfg(feature = "repo_financing")]
pub mod repo_financing;
#[cfg(feature = "capital_allocation")]
pub mod capital_allocation;
#[cfg(feature = "credit_scoring")]
pub mod credit_scoring;
#[cfg(feature = "clo_analytics")]
pub mod clo_analytics;
#[cfg(feature = "fund_of_funds")]
pub mod fund_of_funds;
#[cfg(feature = "earnings_quality")]
pub mod earnings_quality;
#[cfg(feature = "dividend_policy")]
pub mod dividend_policy;
#[cfg(feature = "carbon_markets")]
pub mod carbon_markets;
#[cfg(feature = "bank_analytics")]
pub mod bank_analytics;
#[cfg(feature = "private_wealth")]
pub mod private_wealth;
#[cfg(feature = "emerging_markets")]
pub mod emerging_markets;
#[cfg(feature = "index_construction")]
pub mod index_construction;
#[cfg(feature = "financial_forensics")]
pub mod financial_forensics;
#[cfg(feature = "workflows")]
pub mod workflows;
#[cfg(feature = "institutional_real_estate")]
pub mod institutional_real_estate;
#[cfg(feature = "managed_agent")]
pub mod managed_agent;
#[cfg(feature = "audit")]
pub mod audit;
#[cfg(feature = "office")]
pub mod office;
#[cfg(feature = "observability")]
pub mod observability;
/// MCP-server tier registry — pure data, always available (no feature gate).
/// Lets users discover which MCP servers are free vs. paid-vendor.
pub mod mcp_servers;
#[cfg(feature = "cost")]
pub mod cost;
#[cfg(feature = "security")]
pub mod security;
#[cfg(feature = "memory")]
pub mod memory;
#[cfg(feature = "federation")]
pub mod federation;
#[cfg(feature = "multi_agent")]
pub mod multi_agent;
#[cfg(feature = "self_learning")]
pub mod self_learning;
pub use error::CorpFinanceError;
pub use types::*;
/// Standard result type for all corp-finance operations
pub type CorpFinanceResult<T> = Result<T, CorpFinanceError>;