[package]
edition = "2021"
rust-version = "1.75"
name = "quantlib_rs"
version = "0.1.0"
authors = ["quantlib_rs contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A ground-up, idiomatic Rust quantitative finance library inspired by QuantLib."
homepage = "https://github.com/goim-ved/quantlib_rs"
documentation = "https://docs.rs/quantlib_rs"
readme = "README.md"
keywords = [
"quant",
"finance",
"options",
"derivatives",
"black-scholes",
]
categories = [
"science",
"mathematics",
"finance",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/goim-ved/quantlib_rs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[lib]
name = "quantlib_rs"
path = "src/lib.rs"
[[test]]
name = "test_phase0_math"
path = "tests/test_phase0_math.rs"
[[test]]
name = "test_phase0_time"
path = "tests/test_phase0_time.rs"
[[test]]
name = "test_phase1_european_option"
path = "tests/test_phase1_european_option.rs"
[[test]]
name = "test_phase2_fixed_income"
path = "tests/test_phase2_fixed_income.rs"
[dependencies.statrs]
version = "0.19"
[dependencies.thiserror]
version = "2.0"
[dev-dependencies.approx]
version = "0.5"
[dev-dependencies.rand]
version = "0.9"
[dev-dependencies.rand_distr]
version = "0.6"
[lints.clippy]
bool_to_int_with_if = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
excessive_precision = "allow"
float_cmp = "allow"
if_not_else = "allow"
items_after_statements = "allow"
manual_midpoint = "allow"
many_single_char_names = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
suboptimal_flops = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unreadable_literal = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"