[package]
edition = "2021"
rust-version = "1.79"
name = "solmath"
version = "0.1.5"
build = false
include = [
"Cargo.toml",
"README.md",
"INTEGRATION.md",
"SECURITY.md",
"USAGE.md",
"PROOFS.md",
"VALIDATION.md",
"CHANGELOG.md",
"LICENSE-APACHE",
"LICENSE-MIT",
"docs/**",
"examples/**",
"benchmark/iv_vectors.json",
"test_data/heston_reference_tests.rs",
"test_data/sabr_reference_tests.rs",
"src/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fixed-point financial math for Solana. Black-Scholes, Greeks, IV, NIG pricing, pool math — pure integer arithmetic, no_std, zero dependencies."
readme = "README.md"
keywords = [
"solana",
"fixed-point",
"black-scholes",
"defi",
"math",
]
categories = [
"mathematics",
"no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/DJBarker87/solmath"
[features]
barrier = ["transcendental"]
bivariate = ["transcendental"]
bs = ["transcendental"]
complex = ["transcendental"]
default = [
"transcendental",
"complex",
]
full = [
"transcendental",
"complex",
"bs",
"iv",
"barrier",
"nig",
"heston",
"sabr",
"pool",
"bivariate",
]
heston = [
"bs",
"complex",
]
idl-build = []
iv = ["bs"]
nig = [
"transcendental",
"complex",
]
pade-iv = ["iv"]
pool = ["transcendental"]
sabr = ["transcendental"]
table-gen = ["bivariate"]
transcendental = []
[lib]
name = "solmath"
path = "src/lib.rs"
[[example]]
name = "options_pricing"
path = "examples/options_pricing.rs"
required-features = ["transcendental"]
[[example]]
name = "safe_token_conversion"
path = "examples/safe_token_conversion.rs"
required-features = ["pool"]
[[example]]
name = "weighted_pool_swap"
path = "examples/weighted_pool_swap.rs"
required-features = ["pool"]
[dependencies]