[package] name = "switchboard-on-demand" version = "0.1.17" # docs.rs autobuild has difficulty with ahash dep. Host yuorself at https://tiiny.host/ documentation = "https://switchboard-on-demand-rust-docs.web.app" edition = "2021" resolver = "2" description = "A Rust library to interact with the Switchboard Solana program." readme = "README.md" keywords = ["switchboard", "oracle", "solana"] homepage = "https://switchboard.xyz" repository = "https://github.com/switchboard-xyz/solana-sdk/tree/main/rust/switchboard-solana" license = "MIT" [lib] crate-type = ["cdylib", "lib"] name = "switchboard_on_demand" doctest = false [features] default = ["cpi"] no-entrypoint = [] cpi = ["no-entrypoint"] secrets = ["rand", "rsa", "reqwest"] ipfs = ["switchboard-common/ipfs"] all-features = ["secrets", "ipfs", "cpi", "no-entrypoint", "client"] pid_override = [] client = ["anchor-spl", "solana-client", "solana-sdk", "anchor-lang", "anchor-client", "switchboard-common/client", "tokio", "tokio-util", "reqwest"] devnet = [] [dependencies] arc-swap = "1.6" async-trait = "0.1.77" base64 = "0.21.4" bincode = { version = "^1" } borsh = { version = "0.10.3" } bytemuck = "^1" futures = "0.3" lazy_static = "1.4.0" libsecp256k1 = "0.7.1" log = { version = "0.4", features = ["kv_unstable", "kv_unstable_std"] } rust_decimal = "^1" serde = { version = "^1", features = ["derive"] } serde_json = { version = "^1" } sha2 = "0.10.8" solana-address-lookup-table-program = ">= 1.14, <2.0" solana-program = ">= 1.14, <2.0" switchboard-common = { version = "0.11.3", path = "../switchboard-common", features = [] } spl-token = { version = "3", features = ["no-entrypoint"] } spl-associated-token-account = { version = "2", features = ["no-entrypoint"] } anchor-lang = { version = "0.29.0", optional = true } anchor-spl = { version = "0.29.0", optional = true } anchor-client = { version = "0.29.0", optional = true } solana-client = { version = "1.17.16, <2.0", optional = true } solana-sdk = { version = "1.17.16, <2.0", optional = true } tokio = { version = "1", features = ["full", "tracing"], optional = true } tokio-util = { version = "0.7.10", features = ["time"], optional = true } rand = { version = "0.8.5", optional = true } reqwest = { version = "0.11", features = ["json"], optional = true } rsa = { version = "0.5.0", optional = true } num = "0.4.3"