# 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"
name = "otc-rfq"
version = "0.1.0"
authors = ["Joaquin Bejar <jb@taunais.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance OTC Request-for-Quote engine supporting DeFi protocols and TradFi venues via FIX 4.4"
readme = "README.md"
keywords = [
    "otc",
    "rfq",
    "trading",
    "defi",
    "fix",
]
categories = [
    "finance",
    "cryptography::cryptocurrencies",
]
license = "MIT"
repository = "https://github.com/joaquinbejar/otc-rfq.git"

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

[[bin]]
name = "otc-rfq"
path = "src/main.rs"

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.axum]
version = "0.8"
features = [
    "ws",
    "macros",
]

[dependencies.axum-extra]
version = "0.12"
features = ["typed-header"]

[dependencies.bytes]
version = "1.11"

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

[dependencies.config]
version = "0.15"

[dependencies.dashmap]
version = "6.1"

[dependencies.dotenvy]
version = "0.15"

[dependencies.ethers]
version = "2.0"
features = ["rustls"]

[dependencies.futures]
version = "0.3"

[dependencies.jsonwebtoken]
version = "10.3"
features = ["rust_crypto"]

[dependencies.parking_lot]
version = "0.12"

[dependencies.prost]
version = "0.14"

[dependencies.rand]
version = "0.9.2"

[dependencies.redis]
version = "1.0"
features = [
    "tokio-comp",
    "connection-manager",
]

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls",
]

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

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "postgres",
    "uuid",
    "chrono",
    "rust_decimal",
]

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.49"
features = [
    "full",
    "tracing",
]

[dependencies.tokio-stream]
version = "0.1.18"

[dependencies.toml]
version = "0.9.11"

[dependencies.tonic]
version = "0.14"
features = [
    "transport",
    "tls-ring",
]

[dependencies.tonic-prost]
version = "0.14.3"

[dependencies.tower]
version = "0.5"
features = ["full"]

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "trace",
    "compression-gzip",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]

[dependencies.uuid]
version = "1.20"
features = [
    "v4",
    "serde",
]

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

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

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

[dev-dependencies.testcontainers]
version = "0.26"

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.wiremock]
version = "0.6"

[build-dependencies.prost-build]
version = "0.14"

[build-dependencies.tonic-build]
version = "0.14"

[build-dependencies.tonic-prost-build]
version = "0.14"

[lints.clippy]
clone_on_ref_ptr = "warn"
expect_used = "deny"
indexing_slicing = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
needless_collect = "warn"
panic = "deny"
unnecessary_to_owned = "warn"
unwrap_used = "deny"

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"

[profile.dev]
overflow-checks = true

[profile.release]
lto = "thin"
codegen-units = 1
overflow-checks = true
