[package]
name = "indodax-cli"
version = "0.1.49"
edition = "2021"
description = "A command-line interface for the Indodax cryptocurrency exchange"
license = "MIT"
repository = "https://github.com/ibidathoillah/indodax-cli"
[features]
default = ["sdk"]
sdk = []
cli = ["dep:colored", "dep:dialoguer", "dep:rustyline", "dep:comfy-table", "dep:clap", "dep:tokio-tungstenite"]
mcp = ["dep:rmcp", "rmcp/server", "rmcp/transport-io", "rmcp/macros", "rmcp/schemars"]
server = ["dep:axum", "dep:tower-http", "dep:tokio-tungstenite"]
[[bin]]
name = "indodax-cli"
path = "src/main.rs"
required-features = ["cli"]
[dependencies]
clap = { version = "4.4", features = ["derive"], optional = true }
anyhow = "1"
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls-webpki-roots"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"
hmac = "0.12"
sha2 = "0.10"
url = "2"
hex = "0.4"
chrono = { version = "0.4", features = ["serde"] }
futures-util = { version = "0.3", features = ["sink"] }
thiserror = "2"
dirs = "6"
tracing = "0.1"
web-time = "1.1"
colored = { version = "2", optional = true }
dialoguer = { version = "0.11", optional = true }
rustyline = { version = "12", optional = true }
comfy-table = { version = "7", optional = true }
rmcp = { version = "1.7", features = ["server", "transport-io", "macros", "schemars"], optional = true }
axum = { version = "0.7", optional = true }
tower-http = { version = "0.6", features = ["cors"], optional = true }
tokio-tungstenite = { version = "0.24", optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
indicatif = "0.17"
shlex = "1.3"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
tokio = { version = "1", features = ["full"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
tokio = { version = "1", features = ["macros", "sync", "time", "rt"] }
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
web-sys = { version = "0.3", features = ["Location", "Window"] }
[dev-dependencies]
serial_test = "3.4.0"
tower = { version = "0.5", features = ["util"] }