[package]
name = "romm-cli"
description = "Rust-based CLI for the RomM API"
keywords = ["romm", "terminal", "tui", "emulator", "games"]
categories = ["command-line-utilities", "emulators"]
readme = "../docs/cli.md"
version = "1.0.0"
edition.workspace = true
repository.workspace = true
license.workspace = true
build = "build.rs"

[dependencies]
romm-api = { workspace = true }
reqwest = { version = "0.13", default-features = false, features = ["json", "multipart", "query", "rustls", "http2"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
clap = { version = "4.5", features = ["derive"] }
clap_complete = "4.5"
anyhow = "1.0"
thiserror = "2"
tokio = { version = "1.37", features = ["macros", "rt-multi-thread", "fs", "io-util", "time", "signal"] }
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
dialoguer = { version = "0.12", default-features = false, features = ["password"] }
indicatif = "0.18.4"
dirs = "6.0"
zip = "8.5.1"
md5 = "0.8"
time = { version = "0.3", features = ["formatting"] }

[[bin]]
name = "romm-cli"
path = "src/main.rs"

[[bin]]
name = "romm-complete-gen"
path = "src/bin/generate_completions.rs"

[dev-dependencies]
assert_cmd = "2.0"
httpmock = "0.7"
predicates = "3.1"
wiremock = "0.6.5"
