[package]
edition = "2021"
name = "solmath"
version = "0.1.2"
build = false
include = [
"Cargo.toml",
"README.md",
"LICENSE-APACHE",
"LICENSE-MIT",
"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"]
bs = ["transcendental"]
complex = ["transcendental"]
default = [
"transcendental",
"complex",
]
full = [
"transcendental",
"complex",
"bs",
"iv",
"barrier",
"nig",
"heston",
"sabr",
"pool",
]
heston = [
"bs",
"complex",
]
idl-build = []
iv = ["bs"]
nig = [
"transcendental",
"complex",
]
pade-iv = ["iv"]
pool = ["transcendental"]
sabr = ["transcendental"]
transcendental = []
[lib]
name = "solmath"
path = "src/lib.rs"
[dependencies]
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"