# 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 = "mijia-spec"
version = "0.2.0"
authors = ["lzyor <lzyor@qq.com>"]
build = false
include = [
    "src/**",
    "Cargo.toml",
    "README.md",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A small Rust library and CLI for Xiaomi MIoT device specification fetching."
homepage = "https://github.com/lzyor/mijia-spec-rs"
documentation = "https://docs.rs/mijia-spec"
readme = "README.md"
keywords = [
    "miio",
    "miot",
    "xiaomi",
    "iot",
    "spec",
]
categories = [
    "command-line-utilities",
    "parsing",
]
license = "MIT"
repository = "https://github.com/lzyor/mijia-spec-rs"

[features]
async = []
cli = [
    "sync",
    "dep:clap",
]
default = [
    "sync",
    "ureq-client",
]
reqwest-client = ["dep:reqwest"]
sync = []
ureq-client = [
    "sync",
    "dep:ureq",
]

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

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

[dependencies.ahash]
version = "0.8"

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

[dependencies.reqwest]
version = "0.13"
features = [
    "rustls",
    "blocking",
]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2"

[dependencies.ureq]
version = "3"
optional = true
