corp-finance-core 1.1.0

Institutional-grade corporate finance calculations with 128-bit decimal precision — DCF, WACC, comps, LBO, credit metrics, derivatives, fixed income, options, and 60+ specialty modules. No f64 in financials. WASM-compatible.
Documentation
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>;