# 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 = "dydx" version = "0.1.1" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "dYdX v4 asynchronous client." readme = "README.md" keywords = [ "trading", "dex", ] categories = [ "api-bindings", "asynchronous", "finance", ] license = "LicenseRef-dYdX-Custom" repository = "https://github.com/dydxprotocol/v4-clients/tree/main/v4-client-rs" [lib] name = "dydx" path = "src/lib.rs" [[example]] name = "account_endpoint" path = "examples/account_endpoint.rs" [[example]] name = "batch_cancel_orders" path = "examples/batch_cancel_orders.rs" [[example]] name = "bot_basic_adder" path = "examples/bot_basic_adder.rs" [[example]] name = "bot_trend_follower" path = "examples/bot_trend_follower.rs" [[example]] name = "cancel_order" path = "examples/cancel_order.rs" [[example]] name = "close_all_positions" path = "examples/close_all_positions.rs" [[example]] name = "close_position" path = "examples/close_position.rs" [[example]] name = "deposit" path = "examples/deposit.rs" [[example]] name = "faucet_endpoint" path = "examples/faucet_endpoint.rs" [[example]] name = "live_price" path = "examples/live_price.rs" [[example]] name = "market_endpoint" path = "examples/market_endpoint.rs" [[example]] name = "noble_transfer" path = "examples/noble_transfer.rs" [[example]] name = "place_order_long_term" path = "examples/place_order_long_term.rs" [[example]] name = "place_order_short_term" path = "examples/place_order_short_term.rs" [[example]] name = "send_token" path = "examples/send_token.rs" [[example]] name = "sequencer" path = "examples/sequencer.rs" [[example]] name = "transfer" path = "examples/transfer.rs" [[example]] name = "utility_endpoint" path = "examples/utility_endpoint.rs" [[example]] name = "validator_get" path = "examples/validator_get.rs" [[example]] name = "validator_megavault" path = "examples/validator_megavault.rs" [[example]] name = "validator_post" path = "examples/validator_post.rs" [[example]] name = "vault_endpoint" path = "examples/vault_endpoint.rs" [[example]] name = "wallet" path = "examples/wallet.rs" [[example]] name = "websockets" path = "examples/websockets.rs" [[example]] name = "withdraw" path = "examples/withdraw.rs" [[example]] name = "withdraw_other" path = "examples/withdraw_other.rs" [[test]] name = "env" path = "tests/env.rs" [[test]] name = "test_faucet" path = "tests/test_faucet.rs" [[test]] name = "test_indexer_rest" path = "tests/test_indexer_rest.rs" [[test]] name = "test_indexer_sock" path = "tests/test_indexer_sock.rs" [[test]] name = "test_noble" path = "tests/test_noble.rs" [[test]] name = "test_node" path = "tests/test_node.rs" [[test]] name = "test_node_megavault" path = "tests/test_node_megavault.rs" [[test]] name = "test_node_methods" path = "tests/test_node_methods.rs" [[test]] name = "test_node_sequencer" path = "tests/test_node_sequencer.rs" [dependencies.anyhow] version = "1" [dependencies.async-trait] version = "0.1" [dependencies.bigdecimal] version = "0.4" features = ["serde"] [dependencies.bip32] version = "0.5" features = [ "bip39", "alloc", "secp256k1", ] default-features = false [dependencies.chrono] version = "0.4" features = ["serde"] [dependencies.cosmrs] version = "0.21" [dependencies.derive_more] version = "1" features = ["full"] [dependencies.dydx-proto] version = "0.2.0" [dependencies.futures-util] version = "0.3" [dependencies.governor] version = "0.7" features = ["std"] default-features = false [dependencies.ibc-proto] version = "0.51" optional = true [dependencies.log] version = "0.4" [dependencies.metrics] version = "0.24" optional = true [dependencies.rand] version = "0.8" [dependencies.reqwest] version = "0.12" features = ["json"] [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde_json] version = "1" [dependencies.serde_with] version = "3.11" [dependencies.strum] version = "0.26" features = ["derive"] [dependencies.thiserror] version = "2" [dependencies.tokio] version = "1.41" features = [ "fs", "rt-multi-thread", ] [dependencies.tokio-tungstenite] version = "0.24" features = ["native-tls"] [dependencies.toml] version = "0.8" [dependencies.tonic] version = "0.12" features = ["tls-native-roots"] [dependencies.tower] version = "0.5" features = ["timeout"] [dev-dependencies.metrics-exporter-tcp] version = "0.11.0" [dev-dependencies.serial_test] version = "3.2.0" [dev-dependencies.tracing] version = "0.1" [dev-dependencies.tracing-subscriber] version = "0.3" [features] default = [ "faucet", "noble", "telemetry", ] faucet = [] noble = ["dep:ibc-proto"] telemetry = ["dep:metrics"]