# 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 = "stablebond-sdk"
version = "0.3.17"
description = "A IDL library for Etherfuse Stablebonds."
readme = "README.md"
license = "Apache-2.0"

[lib]
crate-type = [
    "cdylib",
    "lib",
]

[dependencies.anyhow]
version = "1.0.75"

[dependencies.base64]
version = "0.22.0"

[dependencies.borsh]
version = "^0.10"

[dependencies.cfg-if]
version = "1.0.0"

[dependencies.mpl-token-metadata]
version = "4.1.2"
features = ["serde"]

[dependencies.num-derive]
version = "^0.3"

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

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

[dependencies.serde_with]
version = "^3.0"
optional = true

[dependencies.solana-account-decoder]
version = "=1.17.26"
optional = true

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

[dependencies.solana-program]
version = "=1.17.26"

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

[dependencies.spl-associated-token-account]
version = "=2.3.0"
features = ["no-entrypoint"]
optional = true

[dependencies.spl-token-2022]
version = "2.0.1"
features = ["no-entrypoint"]

[dependencies.thiserror]
version = "^1.0"

[dev-dependencies.assert_matches]
version = "1.5.0"

[dev-dependencies.async-trait]
version = "0.1.77"

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

[dev-dependencies.futures-util]
version = "0.3.30"

[dev-dependencies.serde]
version = "^1.0.118"

[dev-dependencies.solana-logger]
version = "=1.17.26"

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

[dev-dependencies.solana-sdk]
version = "=1.17.26"

[dev-dependencies.spl-associated-token-account]
version = "=2.3.0"
features = ["no-entrypoint"]

[dev-dependencies.spl-token]
version = "=4.0.0"
features = ["no-entrypoint"]

[features]
cpi = []
default = []
sdk = [
    "dep:solana-sdk",
    "dep:solana-client",
    "dep:solana-account-decoder",
    "dep:spl-associated-token-account",
]
serde = [
    "dep:serde",
    "dep:serde_with",
]
