fin-primitives 2.12.0

Financial market primitives: validated types, order book, OHLCV aggregation, 550+ streaming technical indicators, position ledger, and risk monitoring.
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.81"
name = "fin-primitives"
version = "2.12.0"
authors = ["Matt Busel <matt@busel.dev>"]
build = false
include = [
    "src/**/*",
    "benches/**/*",
    "tests/**/*",
    "Cargo.toml",
    "README.md",
    "LICENSE",
    "CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Financial market primitives: validated types, order book, OHLCV aggregation, 550+ streaming technical indicators, position ledger, and risk monitoring."
documentation = "https://docs.rs/fin-primitives"
readme = "README.md"
keywords = [
    "finance",
    "trading",
    "hft",
    "orderbook",
    "market-data",
]
categories = [
    "finance",
    "data-structures",
    "algorithms",
]
license = "MIT"
repository = "https://github.com/Mattbusel/fin-primitives"

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

[[test]]
name = "api_coverage"
path = "tests/api_coverage.rs"

[[test]]
name = "book_reconstruction"
path = "tests/book_reconstruction.rs"

[[test]]
name = "edge_cases"
path = "tests/edge_cases.rs"

[[test]]
name = "indicator_accuracy"
path = "tests/indicator_accuracy.rs"

[[test]]
name = "ohlcv_scenarios"
path = "tests/ohlcv_scenarios.rs"

[[test]]
name = "orderbook_advanced"
path = "tests/orderbook_advanced.rs"

[[test]]
name = "position_lifecycle"
path = "tests/position_lifecycle.rs"

[[test]]
name = "position_risk_integration"
path = "tests/position_risk_integration.rs"

[[test]]
name = "property_tests"
path = "tests/property_tests.rs"

[[test]]
name = "risk_monitor"
path = "tests/risk_monitor.rs"

[[test]]
name = "serde_roundtrip"
path = "tests/serde_roundtrip.rs"

[[test]]
name = "signal_pipeline"
path = "tests/signal_pipeline.rs"

[[test]]
name = "tick_to_ohlcv"
path = "tests/tick_to_ohlcv.rs"

[[bench]]
name = "tick_bench"
path = "benches/tick_bench.rs"
harness = false

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.rust_decimal]
version = "1"
features = ["serde-with-str"]

[dependencies.rust_decimal_macros]
version = "1"

[dependencies.serde]
version = "1"
features = [
    "derive",
    "rc",
]

[dependencies.thiserror]
version = "1"

[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tokio]
version = "1.40"
features = [
    "full",
    "test-util",
]

[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
expect_used = "warn"
explicit_iter_loop = "allow"
if_not_else = "allow"
items_after_statements = "allow"
manual_let_else = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
panic = "warn"
redundant_closure_for_method_calls = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
todo = "warn"
too_many_lines = "allow"
unwrap_used = "warn"
wildcard_imports = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[profile.bench]
opt-level = 3
lto = "thin"
codegen-units = 1

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
panic = "abort"
strip = "debuginfo"