[package]
edition = "2024"
rust-version = "1.89"
name = "optionstratlib-core"
version = "0.23.0"
authors = ["Joaquin Bejar <jb@taunais.com>"]
build = false
include = [
"/src/**/*",
"/Cargo.toml",
"/README.md",
"/LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core domain model of OptionStratLib: options, positions, legs, trades, checked Decimal helpers and their errors. Re-exported by the optionstratlib facade on every feature set."
homepage = "https://github.com/joaquinbejar/OptionStratLib"
readme = "README.md"
keywords = [
"finance",
"options",
"trading",
"decimal",
]
categories = [
"finance",
"data-structures",
]
license = "MIT"
repository = "https://github.com/joaquinbejar/OptionStratLib"
[package.metadata.docs.rs]
features = ["schema"]
[features]
default = []
schema = [
"dep:utoipa",
"positive/utoipa",
"expiration_date/utoipa",
"financial_types/utoipa",
"option_type/utoipa",
]
[lib]
name = "optionstratlib_core"
path = "src/lib.rs"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.expiration_date]
version = "0.5"
[dependencies.financial_types]
version = "0.3"
[dependencies.num-traits]
version = "0.2"
[dependencies.option_type]
version = "0.5"
[dependencies.positive]
version = "0.8"
[dependencies.rand]
version = "0.10"
[dependencies.rand_distr]
version = "0.6"
[dependencies.rust_decimal]
version = "1.43"
features = [
"maths",
"serde",
]
[dependencies.rust_decimal_macros]
version = "1.40"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tracing]
version = "0.1"
[dependencies.utoipa]
version = "6.0"
features = [
"chrono",
"decimal",
]
optional = true
[dependencies.uuid]
version = "1.27"
features = [
"v4",
"serde",
]
[dev-dependencies.approx]
version = "0.5"
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
default-features = false
[dev-dependencies.proptest]
version = "1.11"