[package]
name = "hadron-sdk"
version = "0.1.1"
edition = "2021"
license = "Apache-2.0"
description = "Rust client SDK for the Hadron protocol"
readme = "README.md"
keywords = ["solana", "hadron", "amm", "defi"]
categories = ["cryptography::cryptocurrencies"]
exclude = ["tests/"]

[dependencies]
solana-sdk = "2.2"
spl-token = { version = "8", features = ["no-entrypoint"] }
spl-associated-token-account = { version = "7", features = ["no-entrypoint"] }
spl-token-2022 = { version = "9", features = ["no-entrypoint"] }
thiserror = "2"

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

[dependencies.tokio]
version = "1"
optional = true

[features]
default = []
rpc = ["dep:solana-client", "dep:tokio"]

[dev-dependencies]
serde_json = "1"
serde = { version = "1", features = ["derive"] }
hmac = "0.12"
sha2 = "0.10"
ed25519-dalek = "2"
