# 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 = "romm-api"
version = "0.40.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP client and domain logic for the RomM API"
readme = "api.md"
keywords = [
    "romm",
    "api",
    "emulator",
    "games",
]
categories = [
    "api-bindings",
    "emulators",
]
license = "MIT"
repository = "https://github.com/patricksmill/romm-cli"

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

[[bin]]
name = "romm-openapi-gen"
path = "src/bin/openapi_gen.rs"

[[test]]
name = "openapi_registry"
path = "tests/openapi_registry.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.base64]
version = "0.22"

[dependencies.dirs]
version = "6.0"

[dependencies.indicatif]
version = "0.18.4"

[dependencies.keyring]
version = "4.0.1"

[dependencies.keyring-core]
version = "1.0.0"

[dependencies.md5]
version = "0.8"

[dependencies.percent-encoding]
version = "2.3"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "multipart",
    "query",
    "rustls",
    "http2",
]
default-features = false

[dependencies.self_update]
version = "0.44.0"
features = [
    "reqwest",
    "rustls",
    "archive-zip",
    "archive-tar",
    "compression-flate2",
    "compression-zip-deflate",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.11"

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = ["formatting"]

[dependencies.tokio]
version = "1.37"
features = [
    "macros",
    "rt-multi-thread",
    "fs",
    "io-util",
    "time",
    "signal",
]

[dependencies.tracing]
version = "0.1.44"

[dependencies.zip]
version = "8.5.1"

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

[dev-dependencies.wiremock]
version = "0.6.5"
