[package]
name = "fusionamm-client"
version = "1.0.79"
description = "Rust client to interact with on-chain FusionAMM program."
include = ["src/*"]
homepage = "https://fusionamm.com"
license-file = "LICENSE"
repository = "https://github.com/DefiTuna/fusionamm-sdk"
keywords = ["solana", "crypto", "defi", "dex", "amm"]
authors = ["info@fusionamm.com"]
edition = "2021"

[features]
default = ["core-types"]
anchor = ["dep:anchor-lang"]
anchor-idl-build = []
core-types = ["dep:fusionamm-core"]
serde = ["dep:serde", "dep:serde_with", "dep:serde-big-array"]
fetch = []
solana-v1 = []

[dependencies]
# Solana
solana-client = { version = "^2.2" }
solana-account-decoder = { version = "^2.2" }
solana-account = { version = "^2.2" }
solana-program = { version = "^2.2" }
solana-pubkey = { version = "^2.2" }
solana-program-entrypoint = { version = "^2.2" }
solana-decode-error = { version = "^2.2" }
solana-program-error = { version = "^2.2" }
solana-msg = { version = "^2.2" }
solana-instruction = { version = "^2.2" }
solana-cpi = { version = "^2.2" }
solana-account-info = { version = "^2.2" }

# Anchor
anchor-lang = { version = ">=0.28, <0.33", optional = true }

# Other dependencies
borsh = { version = "^0.10" }
num-derive = { version = "^0.4" }
num-traits = { version = "^0.2" }
fusionamm-core = { version = "1.0.79", optional = true }
serde = { version = "^1.0", features = ["derive"], optional = true }
serde_with = { version = "^3.10", optional = true }
serde-big-array = { version = "^0.5", optional = true }
thiserror = { version = "^2.0" }
