# 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 = "switchboard-solana"
version = "0.28.44"
description = "A Rust library to interact with Switchboard accounts."
homepage = "https://switchboard.xyz"
readme = "README.md"
keywords = [
    "switchboard",
    "oracle",
    "solana",
]
license = "MIT"
repository = "https://github.com/switchboard-xyz/solana-sdk/tree/main/rust/switchboard-solana"
resolver = "2"

[package.metadata.docs.rs]
rustdoc-args = [
    "--cfg",
    "doc_cfg",
]

[lib]
name = "switchboard_solana"
crate-type = [
    "cdylib",
    "lib",
]
doctest = false

[dependencies.anchor-spl]
version = "0.28.0"

[dependencies.bytemuck]
version = "^1"

[dependencies.kv-log-macro]
version = "1.0"

[dependencies.log]
version = "0.4"
features = [
    "kv_unstable",
    "kv_unstable_std",
]

[dependencies.rust_decimal]
version = "^1"

[dependencies.solana-address-lookup-table-program]
version = ">= 1.16, < 1.17"

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

[dependencies.superslice]
version = "1"

[dependencies.switchboard-solana-macros]
version = "0.2.0"
optional = true

[dev-dependencies.json_env_logger]
version = "0.1"

[dev-dependencies.pretty_assertions]
version = "1.4.0"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[features]
all = [
    "secrets",
    "macros",
]
cpi = ["no-entrypoint"]
default = ["cpi"]
macros = ["switchboard-solana-macros"]
no-entrypoint = []
secrets = [
    "rand",
    "rsa",
    "reqwest",
]

[target."cfg(not(target_os = \"solana\"))".dependencies.anchor-client]
version = "0.28.0"

[target."cfg(not(target_os = \"solana\"))".dependencies.base64]
version = "0.21.4"

[target."cfg(not(target_os = \"solana\"))".dependencies.bincode]
version = "^1"

[target."cfg(not(target_os = \"solana\"))".dependencies.chrono]
version = "0.4.25"

[target."cfg(not(target_os = \"solana\"))".dependencies.cron]
version = "0.12.0"

[target."cfg(not(target_os = \"solana\"))".dependencies.dashmap]
version = "5.5.3"

[target."cfg(not(target_os = \"solana\"))".dependencies.futures]
version = "0.3"

[target."cfg(not(target_os = \"solana\"))".dependencies.hex]
version = "0.4.3"

[target."cfg(not(target_os = \"solana\"))".dependencies.rand]
version = "0.8.5"
optional = true

[target."cfg(not(target_os = \"solana\"))".dependencies.reqwest]
version = "0.11"
features = ["json"]
optional = true

[target."cfg(not(target_os = \"solana\"))".dependencies.rsa]
version = "0.5.0"
optional = true

[target."cfg(not(target_os = \"solana\"))".dependencies.serde]
version = "^1"
features = ["derive"]

[target."cfg(not(target_os = \"solana\"))".dependencies.serde_json]
version = "^1"

[target."cfg(not(target_os = \"solana\"))".dependencies.sgx-quote]
version = "0.1.0"

[target."cfg(not(target_os = \"solana\"))".dependencies.sha2]
version = "0.10.6"

[target."cfg(not(target_os = \"solana\"))".dependencies.solana-account-decoder]
version = ">= 1.16, < 1.17"

[target."cfg(not(target_os = \"solana\"))".dependencies.solana-client]
version = ">= 1.16, < 1.17"

[target."cfg(not(target_os = \"solana\"))".dependencies.switchboard-common]
version = "0.10.1"
features = ["client"]

[target."cfg(not(target_os = \"solana\"))".dependencies.tokio]
version = "1"

[target."cfg(not(target_os = \"solana\"))".dependencies.url]
version = "2.4"

[target."cfg(target_os = \"solana\")".dependencies.anchor-lang]
version = "0.28.0"

[target."cfg(target_os = \"solana\")".dependencies.switchboard-common]
version = "0.10.1"
