# 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.88.0"
name = "clin-rs"
version = "0.9.4"
authors = ["reekta92 <mdag.92988@protonmail.com>"]
build = false
exclude = [
    "assets/*",
    "docs/*",
    "examples/*",
    "dev_scripts/*",
    "PKGBUILD",
    "clin.ico",
    ".github/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Feature-packed terminal note management app inspired by Obsidian"
homepage = "https://github.com/reekta92/clin-rs"
readme = "README.md"
keywords = [
    "tui",
    "notes",
    "obsidian",
    "encryption",
    "terminal",
]
categories = [
    "command-line-utilities",
    "text-editors",
]
license = "GPL-3.0-only"
repository = "https://github.com/reekta92/clin-rs"

[package.metadata.deb]
name = "clin-rs"
maintainer = "reekta <reekta@localhost>"
copyright = "2026, reekta"
depends = "libc6 (>= 2.31), libssl3 | libssl1.1"
section = "utils"
priority = "optional"
assets = [
    [
    "target/release/clin",
    "usr/bin/clin",
    "755",
],
    [
    "clin.ico",
    "usr/share/pixmaps/clin.ico",
    "644",
],
]
extended-description = "clin-rs is a terminal-first encrypted note app with in-app editing and mouse support."

[package.metadata.generate-rpm]
name = "clin-rs"

[[package.metadata.generate-rpm.assets]]
source = "target/release/clin"
dest = "/usr/bin/clin"
mode = "0755"

[[package.metadata.generate-rpm.assets]]
source = "clin.ico"
dest = "/usr/share/pixmaps/clin.ico"
mode = "0644"

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

[[bin]]
name = "clin"
path = "src/bin/clin.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.arboard]
version = "3.6.1"

[dependencies.bincode]
version = "2.0"
features = ["serde"]

[dependencies.chacha20poly1305]
version = "0.10"

[dependencies.chrono]
version = "0.4"

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

[dependencies.comrak]
version = "0.36"
default-features = false

[dependencies.crossterm]
version = "0.29"

[dependencies.csv]
version = "1.3"

[dependencies.directories]
version = "5.0"

[dependencies.fdg-sim]
version = "0.9"

[dependencies.fuzzy-matcher]
version = "0.3.7"

[dependencies.git2]
version = "0.21"

[dependencies.image]
version = "0.25.10"

[dependencies.mimalloc]
version = "0.1"

[dependencies.parking_lot]
version = "0.12"

[dependencies.rand]
version = "0.8"

[dependencies.ratatui]
version = "0.30"

[dependencies.ratatui-textarea]
version = "0.9"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml_ng]
version = "0.10"

[dependencies.signal-hook]
version = "0.4"

[dependencies.syntect]
version = "5.2"
features = [
    "default-syntaxes",
    "default-themes",
    "regex-fancy",
]
default-features = false

[dependencies.tempfile]
version = "3.27.0"

[dependencies.toml]
version = "1.1"

[dependencies.toml_edit]
version = "0.25"

[dependencies.trash]
version = "5"

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

[dependencies.uuid]
version = "1.8"
features = ["v4"]

[dependencies.which]
version = "8.0.2"

[dependencies.zeroize]
version = "1.8.2"
features = ["derive"]

[lints.clippy]
assigning_clones = "allow"
bool_to_int_with_if = "allow"
case_sensitive_file_extension_comparisons = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
expect_used = "allow"
float_cmp = "allow"
format_push_string = "allow"
if_not_else = "allow"
ignored_unit_patterns = "allow"
implicit_clone = "allow"
inconsistent_struct_constructor = "allow"
items_after_statements = "allow"
manual_is_variant_and = "allow"
manual_let_else = "allow"
manual_midpoint = "allow"
manual_string_new = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_continue = "allow"
needless_pass_by_value = "allow"
needless_raw_string_hashes = "allow"
non_std_lazy_statics = "allow"
range_plus_one = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "allow"
unused_self = "allow"
unwrap_used = "warn"
used_underscore_binding = "allow"
wildcard_imports = "allow"

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

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