# 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 = "catnap"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Visual CLI sleep"
homepage = "https://github.com/leynos/catnap"
readme = "README.md"
keywords = [
    "rust",
    "timer",
    "cli",
]
categories = ["command-line-utilities"]
license = "ISC"
repository = "https://github.com/leynos/catnap"

[package.metadata.binstall]
pkg-url = "https://github.com/leynos/catnap/releases/download/v{ version }/catnap-{ target }{ binary-ext }"
pkg-fmt = "bin"
disabled-strategies = [
    "quick-install",
    "compile",
]

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

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

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

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

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

[dependencies.sys-locale]
version = "0.3.2"

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.assert_cmd]
version = "2.2.2"

[dev-dependencies.insta]
version = "1.47.2"

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

[dev-dependencies.predicates]
version = "3.1.4"

[dev-dependencies.rstest]
version = "0.26.1"

[dev-dependencies.rstest-bdd]
version = "0.5.0"

[dev-dependencies.rstest-bdd-macros]
version = "0.5.0"

[dev-dependencies.serde_json]
version = "1.0.150"

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
big_endian_bytes = "deny"
blanket_clippy_restriction_lints = "deny"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
cognitive_complexity = "deny"
dbg_macro = "deny"
error_impl_error = "deny"
expect_used = "deny"
float_arithmetic = "deny"
host_endian_bytes = "deny"
implicit_hasher = "deny"
indexing_slicing = "deny"
integer_division = "deny"
integer_division_remainder_used = "deny"
let_underscore_must_use = "deny"
little_endian_bytes = "deny"
lossy_float_literal = "deny"
missing_const_for_fn = "deny"
missing_panics_doc = "deny"
must_use_candidate = "deny"
needless_pass_by_value = "deny"
option_if_let_else = "deny"
or_fun_call = "deny"
panic_in_result_fn = "deny"
print_stderr = "deny"
print_stdout = "deny"
result_large_err = "deny"
self_named_module_files = "deny"
shadow_reuse = "deny"
shadow_same = "deny"
shadow_unrelated = "deny"
str_to_string = "deny"
string_lit_as_bytes = "deny"
string_slice = "deny"
try_err = "deny"
unneeded_field_pattern = "deny"
unreachable = "deny"
unused_async = "deny"
unwrap_used = "deny"
use_self = "deny"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "deny"

[lints.rustdoc]
missing_crate_level_docs = "deny"
