# 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 = "stacks-dex-pools"
version = "0.1.0"
authors = ["Daniel <danielng25010@gmail.com>"]
build = false
exclude = [
    "HANDOFF_ARB_STACKS_DLMM.md",
    "Cargo.toml.fragment",
    ".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Stacks DEX pool implementations — Bitflow DLMM first-class; V2-family + StableSwap behind opt-in `non_dlmm` feature"
readme = "README.md"
keywords = [
    "stacks",
    "dex",
    "bitflow",
    "dlmm",
    "amm",
]
categories = [
    "finance",
    "cryptography::cryptocurrencies",
]
license = "MIT"
repository = "https://github.com/danielNg25/stacks-dex-pool"

[features]
block_walking = []
collector = [
    "registry",
    "rpc",
    "dep:async-trait",
    "dep:futures-util",
]
default = []
non_dlmm = []
registry = [
    "dep:dashmap",
    "dep:tokio",
]
rpc = [
    "dep:reqwest",
    "dep:tokio",
    "dep:async-trait",
    "dep:futures-util",
]

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

[[bin]]
name = "test_all_dlmm"
path = "src/bin/test_all_dlmm.rs"
required-features = ["collector"]

[[bin]]
name = "test_all_pools"
path = "src/bin/test_all_pools.rs"
required-features = [
    "collector",
    "non_dlmm",
]

[[example]]
name = "discover_dlmm"
path = "examples/discover_dlmm.rs"
required-features = ["rpc"]

[[example]]
name = "quote_dlmm"
path = "examples/quote_dlmm.rs"
required-features = ["rpc"]

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

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

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

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

[dependencies.anyhow]
version = "1.0"

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

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

[dependencies.dashmap]
version = "6.1"
optional = true

[dependencies.env_logger]
version = "0.11"

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.once_cell]
version = "1.19"

[dependencies.reqwest]
version = "0.12"
features = ["json"]
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "time",
    "rt",
    "macros",
    "signal",
]
optional = true

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

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