# 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 = "aspens"
version = "0.4.2"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Aspens crosschain trading SDK"
readme = "README.md"
license = "MIT"
repository = "https://github.com/aspensprotocol/sdk"

[features]
admin = []
client = [
    "dep:alloy",
    "dep:alloy-chains",
    "dep:alloy-contract",
    "dep:tonic",
    "dep:tonic-reflection",
    "dep:tonic-prost",
    "dep:prost",
    "dep:tokio",
    "dep:tokio-stream",
    "dep:futures",
    "dep:toml",
    "dep:url",
    "dep:solana-client",
]
default = [
    "trader",
    "formatting",
    "client",
    "evm",
    "solana",
]
evm = []
formatting = ["dep:comfy-table"]
solana = [
    "dep:solana-sdk",
    "dep:solana-keypair",
    "dep:bs58",
    "dep:ed25519-dalek",
    "dep:borsh",
]
trader = []

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

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

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

[dependencies.alloy]
version = "2.0.0"
features = [
    "contract",
    "network",
    "providers",
    "reqwest",
    "reqwest-rustls-tls",
    "rpc-types",
    "signer-local",
    "signers",
    "sol-types",
]
optional = true
default-features = false

[dependencies.alloy-chains]
version = "0.2.30"
optional = true

[dependencies.alloy-contract]
version = "2.0.0"
optional = true

[dependencies.alloy-primitives]
version = "1.5.7"

[dependencies.alloy-signer]
version = "2.0.0"

[dependencies.alloy-signer-local]
version = "2.0.0"

[dependencies.alloy-sol-types]
version = "1.5.7"
features = ["json"]

[dependencies.borsh]
version = "1.6.1"
features = ["derive"]
optional = true

[dependencies.bs58]
version = "0.5"
optional = true

[dependencies.comfy-table]
version = "7.2.2"
optional = true

[dependencies.ed25519-dalek]
version = "2"
optional = true

[dependencies.eyre]
version = "0.6"

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

[dependencies.hex]
version = "0.4.3"

[dependencies.prost]
version = "0.14.3"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.solana-client]
version = "3.1"
optional = true

[dependencies.solana-keypair]
version = "3.1"
optional = true

[dependencies.solana-sdk]
version = "3"
optional = true

[dependencies.tokio]
version = "1.52.1"
features = ["rt-multi-thread"]
optional = true

[dependencies.tokio-stream]
version = "0.1"
optional = true

[dependencies.toml]
version = "1.1.2"
optional = true

[dependencies.tonic]
version = "0.14.5"
features = [
    "codegen",
    "transport",
    "tls-native-roots",
    "tls-ring",
]
optional = true
default-features = false

[dependencies.tonic-prost]
version = "0.14.5"
optional = true

[dependencies.tonic-reflection]
version = "0.14.5"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5.8"
optional = true

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

[dev-dependencies.tokio]
version = "1.52.1"
features = [
    "rt-multi-thread",
    "macros",
    "rt",
]

[build-dependencies.tonic-build]
version = "0.14.5"

[build-dependencies.tonic-prost-build]
version = "0.14.5"
