# 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 = "defituna-client"
version = "2.0.3"
build = false
include = ["src/*"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client to interact with DefiTuna's on-chain program."
homepage = "https://defituna.com"
readme = "README.md"
keywords = [
    "solana",
    "crypto",
    "defi",
    "dex",
    "amm",
]
license-file = "LICENSE"
repository = "https://github.com/DefiTuna/tuna-sdk"

[features]
anchor = ["dep:anchor-lang"]
anchor-idl-build = []
default = ["fetch"]
fetch = []
serde = [
    "dep:serde",
    "dep:serde_with",
]
solana-v1 = []

[lib]
name = "defituna_client"
crate-type = [
    "cdylib",
    "lib",
]
path = "src/lib.rs"

[dependencies.anchor-lang]
version = ">=0.29, <=0.31.1"
optional = true

[dependencies.anyhow]
version = "1.0.98"

[dependencies.borsh]
version = "0.10"

[dependencies.fixed]
version = "1.29.0"

[dependencies.fusionamm-client]
version = "1.0.47"
features = ["fetch"]

[dependencies.fusionamm-core]
version = "1.0.47"

[dependencies.fusionamm-sdk]
version = "1.0.47"

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

[dependencies.num-traits]
version = "0.2"

[dependencies.orca_whirlpools]
version = "2.0"

[dependencies.orca_whirlpools_client]
version = "3.0"
features = ["fetch"]

[dependencies.orca_whirlpools_core]
version = "2.0"

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

[dependencies.serde_with]
version = "3.12"
optional = true

[dependencies.solana-account-decoder]
version = ">=1.16, <3.0"

[dependencies.solana-client]
version = ">=1.16, <3.0"

[dependencies.solana-program]
version = ">=1.16, <3.0"

[dependencies.solana-sdk]
version = ">=1.16, <3.0"

[dependencies.spl-associated-token-account]
version = "6.0"

[dependencies.spl-memo]
version = "6.0.0"

[dependencies.spl-token]
version = "6.0"

[dependencies.spl-token-2022]
version = "6.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.uint]
version = "0.9"
default-features = false

[dev-dependencies.async-trait]
version = "^0.1"

[dev-dependencies.base64]
version = "^0.22"

[dev-dependencies.bincode]
version = "^1.3"

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

[dev-dependencies.serial_test]
version = "^3.2"

[dev-dependencies.solana-program-test]
version = "^2.2"

[dev-dependencies.solana-version]
version = "^2.1"

[dev-dependencies.tokio]
version = "^1.45"
features = ["sync"]
