solmath 0.2.0

Deterministic fixed-point math and quantitative finance for Solana: Greeks, IV, American KBI, NIG, TWAP, and DeFi primitives.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.79"
name = "solmath"
version = "0.2.0"
build = false
include = [
    "Cargo.toml",
    "README.md",
    "INTEGRATION.md",
    "USAGE.md",
    "SECURITY.md",
    "VALIDATION.md",
    "CHANGELOG.md",
    "LICENSE-APACHE",
    "LICENSE-MIT",
    "docs/ARCHITECTURE.md",
    "docs/AMERICAN_KBI.md",
    "docs/ASIAN_TWAP.md",
    "docs/NIG.md",
    "examples/*.rs",
    "!examples/README.md",
    "src/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Deterministic fixed-point math and quantitative finance for Solana: Greeks, IV, American KBI, NIG, TWAP, and DeFi primitives."
documentation = "https://docs.rs/solmath"
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"

[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]

[features]
american-kbi = ["transcendental"]
asian = ["transcendental"]
barrier = ["transcendental"]
bivariate = ["transcendental"]
bs = ["transcendental"]
complex = ["transcendental"]
default = ["transcendental"]
full = [
    "transcendental",
    "complex",
    "bs",
    "iv",
    "barrier",
    "asian",
    "nig",
    "heston",
    "sabr",
    "pool",
    "bivariate",
    "american-kbi",
    "rainbow",
]
heston = ["bs"]
iv = ["bs"]
nig = ["transcendental"]
pade-iv = ["iv"]
pool = ["transcendental"]
rainbow = ["bivariate"]
sabr = ["transcendental"]
table-gen = ["bivariate"]
transcendental = []

[lib]
name = "solmath"
path = "src/lib.rs"

[[example]]
name = "american_kbi_batch"
path = "examples/american_kbi_batch.rs"
required-features = ["american-kbi"]

[[example]]
name = "asian_batch"
path = "examples/asian_batch.rs"
required-features = ["asian"]

[[example]]
name = "nig_batch"
path = "examples/nig_batch.rs"
required-features = ["nig"]

[[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 = "twap_options"
path = "examples/twap_options.rs"
required-features = ["asian"]

[[example]]
name = "weighted_pool_swap"
path = "examples/weighted_pool_swap.rs"
required-features = ["pool"]

[dependencies]

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(kani)"]

[profile.release]
overflow-checks = true