pacifica_rust_sdk 3.0.0

Rust SDK for pacifica.fi exchange
Documentation
# 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 = "2024"
name = "pacifica_rust_sdk"
version = "3.0.0"
authors = ["Neiroleptik"]
build = false
exclude = [
    ".github/*",
    ".git/*",
    ".gitignore",
    "ci.sh",
    "rustfmt.toml",
    "target/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for pacifica.fi exchange"
readme = "README.md"
license = "MIT"
repository = "https://github.com/Neiroleptik/pacifica_rust_sdk"

[lib]
name = "pacifica_rust_sdk"
path = "src/lib.rs"

[[bin]]
name = "agent_wallet"
path = "src/bin/agent_wallet.rs"

[[bin]]
name = "api_key"
path = "src/bin/api_key.rs"

[[bin]]
name = "basic_exchange"
path = "src/bin/basic_exchange.rs"

[[bin]]
name = "basic_exchange_with_agent"
path = "src/bin/basic_exchange_with_agent.rs"

[[bin]]
name = "batch_order"
path = "src/bin/batch_order.rs"

[[bin]]
name = "cancel_all_orders"
path = "src/bin/cancel_all_orders.rs"

[[bin]]
name = "cancel_order"
path = "src/bin/cancel_order.rs"

[[bin]]
name = "cancel_stop_order"
path = "src/bin/cancel_stop_order.rs"

[[bin]]
name = "info"
path = "src/bin/info.rs"

[[bin]]
name = "market_order"
path = "src/bin/market_order.rs"

[[bin]]
name = "order"
path = "src/bin/order.rs"

[[bin]]
name = "stop_order"
path = "src/bin/stop_order.rs"

[[bin]]
name = "subaccount"
path = "src/bin/subaccount.rs"

[[bin]]
name = "subaccount_transfer"
path = "src/bin/subaccount_transfer.rs"

[[bin]]
name = "tpsl"
path = "src/bin/tpsl.rs"

[[bin]]
name = "update_leverage"
path = "src/bin/update_leverage.rs"

[[bin]]
name = "update_margin_mode"
path = "src/bin/update_margin_mode.rs"

[[bin]]
name = "withdraw"
path = "src/bin/withdraw.rs"

[[bin]]
name = "ws_exchange"
path = "src/bin/ws_exchange.rs"

[[bin]]
name = "ws_info"
path = "src/bin/ws_info.rs"

[dependencies.bs58]
version = "0.5.1"

[dependencies.dotenvy]
version = "0.15.7"

[dependencies.futures-util]
version = "0.3.31"

[dependencies.reqwest]
version = "0.12.23"
features = ["json"]

[dependencies.rust_decimal]
version = "1.36"

[dependencies.rustls]
version = "0.23"
features = ["ring"]
default-features = false

[dependencies.serde]
version = "1.0.219"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_with]
version = "3.14.0"

[dependencies.solana-sdk]
version = "3.0.0"

[dependencies.thiserror]
version = "2.0.16"

[dependencies.tokio]
version = "1.47.1"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
]

[dependencies.tokio-tungstenite]
version = "0.27"
features = [
    "connect",
    "rustls-tls-webpki-roots",
]
default-features = false

[dependencies.tracing]
version = "0.1.41"

[dependencies.tracing-subscriber]
version = "0.3.20"
features = ["env-filter"]

[dependencies.uuid]
version = "1.18.1"
features = [
    "v4",
    "serde",
]

[dependencies.webpki-roots]
version = "0.22"

[profile.dev]
opt-level = 0

[profile.release]
opt-level = 3