# 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 = "2024"
name = "hotfix"
version = "0.5.1"
authors = ["David Steiner <david_j_steiner@yahoo.co.nz>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Buy-side FIX engine written in pure Rust"
homepage = "https://github.com/Validus-Risk-Management/hotfix"
readme = "README.md"
keywords = [
    "fix",
    "fix-protocol",
    "finance",
    "trading",
    "fx",
]
categories = [
    "finance",
    "encoding",
    "parsing",
]
license = "MIT"
repository = "https://github.com/Validus-Risk-Management/hotfix"
resolver = "2"

[features]
default = ["test-utils"]
fix44 = ["hotfix-message/fix44"]
mongodb = ["dep:mongodb"]
test-utils = []

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

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

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

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

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

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

[dependencies.anyhow]
version = "^1.0.75"

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

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

[dependencies.chrono-tz]
version = "^0.10"
features = ["serde"]

[dependencies.futures]
version = "0.3"

[dependencies.hotfix-message]
version = "0.2.8"
features = ["utils-chrono"]

[dependencies.mongodb]
version = "3.3"
optional = true

[dependencies.rustls]
version = "0.23"

[dependencies.rustls-native-certs]
version = "0.8"

[dependencies.rustls-pemfile]
version = "2.2"

[dependencies.rustls-pki-types]
version = "1"

[dependencies.serde]
version = "^1.0.177"
features = ["derive"]

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-rustls]
version = "0.26"

[dependencies.toml]
version = "0.9"

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.5.0"
features = ["v4"]

[dependencies.webpki-roots]
version = "1.0"

[dev-dependencies.hotfix-message]
version = "0.2.8"
features = [
    "fix44",
    "utils-chrono",
]

[dev-dependencies.rcgen]
version = "0.13"

[dev-dependencies.rustls]
version = "0.23"
features = ["ring"]

[dev-dependencies.tempfile]
version = "3"

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

[dev-dependencies.tokio]
version = "1"
features = ["test-util"]

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