findnerd 0.1.0

Semantic search for Nerd Font glyphs
# 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.94.0"
name = "findnerd"
version = "0.1.0"
build = false
exclude = [
    "assets/model",
    ".github",
    "scripts",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Semantic search for Nerd Font glyphs"
readme = "README.md"
keywords = [
    "nerd-fonts",
    "icons",
    "glyphs",
    "search",
    "cli",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/can1357/findnerd"

[features]
default = ["fetch-model"]
embed-model = []
fetch-model = [
    "dep:dirs",
    "dep:sha2",
    "dep:ureq",
]

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

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

[dependencies.anyhow]
version = "1.0.98"

[dependencies.base64]
version = "0.22.1"

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

[dependencies.crossterm]
version = "0.28.1"

[dependencies.dirs]
version = "6.0.0"
optional = true

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

[dependencies.model2vec-rs]
version = "0.2.1"
features = [
    "local-only",
    "onig",
]
default-features = false

[dependencies.ratatui]
version = "0.29.0"

[dependencies.rusqlite]
version = "0.37.0"
features = [
    "bundled",
    "serialize",
]

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

[dependencies.serde_json]
version = "1.0.140"

[dependencies.sha2]
version = "0.10.9"
optional = true

[dependencies.unicode-segmentation]
version = "1.12.0"

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

[dependencies.ureq]
version = "3.1.2"
optional = true

[lints.clippy]
allow_attributes_without_reason = "warn"
borrow_as_ptr = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
default_trait_access = "allow"
enum_glob_use = "allow"
float_cmp = "allow"
inconsistent_struct_constructor = "allow"
inline_always = "allow"
items_after_statements = "allow"
let_underscore_untyped = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
ptr_as_ptr = "allow"
redundant_closure_for_method_calls = "allow"
ref_as_ptr = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
tuple_array_conversions = "allow"
undocumented_unsafe_blocks = "warn"
unreadable_literal = "allow"
unsafe_derive_deserialize = "allow"
verbose_bit_mask = "allow"
wildcard_imports = "allow"

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

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

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

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

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

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

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

[lints.rust]
mismatched_lifetime_syntaxes = "allow"

[profile.release]
lto = "thin"
codegen-units = 1
strip = true