# 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 = "2021"
rust-version = "1.75"
name = "narwhal-vim"
version = "1.2.0"
authors = ["Nonantiy <nonantiy1@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Vim-mode state machine for narwhal"
readme = "README.md"
keywords = [
    "database",
    "tui",
    "sql",
    "client",
    "mcp",
]
categories = [
    "command-line-utilities",
    "database",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Nonanti/narwhal"

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

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

[lints.clippy]
assigning_clones = "allow"
branches_sharing_code = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
empty_line_after_doc_comments = "allow"
format_collect = "allow"
format_push_string = "allow"
ignore_without_reason = "allow"
implicit_hasher = "allow"
items_after_statements = "allow"
manual_let_else = "allow"
many_single_char_names = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_collect = "allow"
needless_pass_by_ref_mut = "allow"
needless_pass_by_value = "allow"
needless_raw_string_hashes = "allow"
option_if_let_else = "allow"
pub_underscore_fields = "allow"
redundant_clone = "allow"
redundant_closure_for_method_calls = "allow"
redundant_pub_crate = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_char_pattern = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
too_long_first_doc_paragraph = "allow"
too_many_lines = "allow"
unnecessary_literal_bound = "allow"
unnecessary_wraps = "allow"
unused_async = "allow"
unused_peekable = "allow"
unused_self = "allow"
used_underscore_binding = "allow"

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

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

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

[lints.rust]
missing_debug_implementations = "allow"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_must_use = "deny"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
