# 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.87.0"
name = "tycho-common"
version = "0.83.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Contains shared models, traits and helpers used within the Tycho system"
homepage = "https://www.propellerheads.xyz/tycho"
documentation = "https://docs.propellerheads.xyz/tycho"
readme = "README.md"
keywords = [
    "propellerheads",
    "solver",
    "defi",
    "dex",
    "mev",
]
categories = ["finance"]
license = "MIT"
repository = "https://github.com/propeller-heads/tycho-indexer"

[package.metadata.cargo-machete]
ignored = ["strum"]

[features]
diesel = ["dep:diesel"]
test-utils = ["mockall"]

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

[dependencies.anyhow]
version = "1.0.75"

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

[dependencies.bytes]
version = "1.5.0"

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

[dependencies.diesel]
version = "2.1.0"
features = [
    "postgres",
    "chrono",
    "serde_json",
]
optional = true

[dependencies.hex]
version = "0.4.3"

[dependencies.mockall]
version = "0.11.4"
optional = true

[dependencies.num-bigint]
version = "0.4"

[dependencies.rand]
version = "0.8.5"

[dependencies.serde]
version = "1.0.204"
features = ["rc"]

[dependencies.serde_json]
version = "1.0.120"

[dependencies.strum]
version = "0.25.0"

[dependencies.strum_macros]
version = "0.25.2"

[dependencies.thiserror]
version = "1"

[dependencies.tiny-keccak]
version = "2.0.2"
features = ["keccak"]

[dependencies.tracing]
version = "0.1.37"

[dependencies.typetag]
version = "0.2.16"

[dependencies.utoipa]
version = "4.2.0"
features = ["chrono"]

[dependencies.uuid]
version = "1.4.1"
features = [
    "serde",
    "v4",
    "fast-rng",
    "macro-diagnostics",
]

[dev-dependencies.diesel-async]
version = "0.4.1"
features = [
    "postgres",
    "deadpool",
]

[dev-dependencies.maplit]
version = "1.0.2"

[dev-dependencies.pretty_assertions]
version = "1.4.0"

[dev-dependencies.rstest]
version = "0.18.2"

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

[dev-dependencies.tokio]
version = "1.27"
features = [
    "time",
    "sync",
    "macros",
    "test-util",
    "rt-multi-thread",
    "parking_lot",
    "tracing",
]
