# 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"
rust-version = "1.96"
name = "sabiql-ui"
version = "1.12.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "UI layer for sabiql"
readme = false
license = "MIT"
repository = "https://github.com/riii111/sabiql"

[features]
test-support = ["sabiql-app/test-support"]

[lib]
name = "sabiql_ui"
path = "lib.rs"

[dependencies.color-eyre]
version = "0.6"

[dependencies.crossterm]
version = "0.29"
features = ["event-stream"]

[dependencies.futures]
version = "0.3"

[dependencies.ratatui]
version = "0.30"

[dependencies.sabiql-app]
version = "1.12.4"

[dependencies.sabiql-domain]
version = "1.12.4"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "time",
    "io-util",
    "process",
    "rt-multi-thread",
    "macros",
    "fs",
]

[dependencies.tokio-util]
version = "0.7"

[dependencies.unicode-width]
version = "0.2"

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

[dev-dependencies.sabiql-app]
version = "1.12.4"
features = ["test-support"]

[lints.clippy]
allow_attributes_without_reason = "deny"
branches_sharing_code = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
collection_is_never_read = "allow"
dbg_macro = "deny"
doc_markdown = "allow"
future_not_send = "allow"
implicit_hasher = "allow"
items_after_statements = "allow"
iter_with_drain = "allow"
match_wildcard_for_single_variants = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
naive_bytecount = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
print_stderr = "deny"
print_stdout = "deny"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_field_names = "allow"
todo = "deny"
too_many_lines = "allow"
unused_self = "allow"
used_underscore_binding = "allow"

[lints.clippy.all]
level = "deny"
priority = -1

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

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