# 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 = "tycho-execution"
version = "0.324.0"
build = false
exclude = [
    "foundry/*",
    "foundry",
    "tests/*",
    "tests/common",
    ".github/*",
    ".gitmodules",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Provides tools for encoding and executing swaps against Tycho router and protocol executors."
homepage = "https://www.propellerheads.xyz/tycho"
documentation = "https://docs.propellerheads.xyz/tycho"
readme = "README.md"
keywords = [
    "propellerheads",
    "solver",
    "defi",
    "dex",
    "mev",
]
categories = [
    "finance",
    "cryptography::cryptocurrencies",
]
license = "BUSL-1.1"
repository = "https://github.com/propeller-heads/tycho"

[features]
default = ["evm"]
evm = [
    "alloy",
    "reqwest",
]
fork-tests = []
test-utils = [
    "async-trait",
    "typetag",
]

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

[[bin]]
name = "tycho-encode"
path = "src/bin/tycho-encode.rs"
required-features = ["evm"]

[[example]]
name = "encoding-example"
path = "examples/encoding-example/main.rs"

[[example]]
name = "uniswapx-encoding-example"
path = "examples/uniswapx-encoding-example/main.rs"

[dependencies.alloy]
version = "1.1.0"
features = [
    "providers",
    "rpc-types-eth",
    "eip712",
    "signer-local",
    "node-bindings",
    "sol-types",
    "transport-http",
    "reqwest-rustls-tls",
]
optional = true
default-features = false

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

[dependencies.chrono]
version = "0.4.26"
features = [
    "serde",
    "clock",
    "std",
]
default-features = false

[dependencies.clap]
version = "4.5.48"
features = ["derive"]

[dependencies.dotenvy]
version = "0.15.7"

[dependencies.hex]
version = "0.4.3"

[dependencies.num-bigint]
version = "0.4.6"
features = ["serde"]

[dependencies.once_cell]
version = "1.20.2"

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

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

[dependencies.serde_json]
version = "1.0.120"

[dependencies.thiserror]
version = "1"

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

[dependencies.tycho-common]
version = "0.324.0"

[dependencies.typetag]
version = "0.2.21"
optional = true

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