# 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 = "boppo_cli"
version = "0.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI and libraries for managing Boppo devices"
homepage = "https://developer.boppo.com"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/boppofun/boppo_cli"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/boppo-v{ version }-{ target }.tar.gz"
bin-dir = "boppo{ binary-ext }"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"

[features]
cli = [
    "dep:clap",
    "dep:clap_complete",
    "dep:indicatif",
]
default = ["cli"]
mock = ["dep:mockall"]

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

[[bin]]
name = "boppo"
path = "src/bin/boppo/main.rs"
required-features = ["cli"]

[dependencies.anyhow]
version = "1"

[dependencies.async-recursion]
version = "1"

[dependencies.async-trait]
version = "0.1"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.clap_complete]
version = "4.6.5"
optional = true

[dependencies.dirs]
version = "6"

[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false

[dependencies.indicatif]
version = "0.17"
optional = true

[dependencies.mdns-sd]
version = "0.20"
features = ["async"]
default-features = false

[dependencies.mockall]
version = "0.14"
optional = true

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

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

[dependencies.serde_json]
version = "1"

[dependencies.serialport]
version = "4"

[dependencies.thiserror]
version = "2"

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

[dependencies.toml]
version = "1"

[dev-dependencies.mockall]
version = "0.14"

[dev-dependencies.tempfile]
version = "3"
