# 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"
rust-version = "1.94"
name = "bat-markets-core"
version = "0.3.1"
authors = ["bat-markets maintainers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core domain contracts and in-memory state engine for bat-markets"
homepage = "https://github.com/bat-markets/bat-markets"
documentation = "https://docs.rs/bat-markets-core"
readme = "README.md"
keywords = [
    "exchange",
    "futures",
    "trading",
    "state",
    "decimal",
]
categories = [
    "api-bindings",
    "finance",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/bat-markets/bat-markets"

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

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.parking_lot]
version = "0.12"

[dependencies.rust_decimal]
version = "1"
features = ["serde"]
default-features = false

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

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = [
    "formatting",
    "macros",
    "parsing",
    "serde",
]

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

[lints.clippy]
dbg_macro = "deny"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "forbid"
