# 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 = "clh-client"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI client for clh-server — fuzzy search your command history"
readme = "README.md"
keywords = [
    "cli",
    "history",
    "fuzzy",
    "shell",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/okkez/clh-client"

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

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/clh-v{ version }-{ target }.zip"
pkg-fmt = "zip"

[[bin]]
name = "clh"
path = "src/main.rs"

[dependencies.anyhow]
version = "1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

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

[dependencies.crossterm]
version = "0.29"

[dependencies.dirs]
version = "6"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = [
    "blocking",
    "json",
    "rustls-tls",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.skim]
version = "4"

[dependencies.toml]
version = "1"

[dev-dependencies.mockito]
version = "1"

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

[lints.clippy]
cargo = "warn"
nursery = "warn"
pedantic = "warn"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
