[package]
edition = "2024"
name = "cnf-lib"
version = "0.6.0"
authors = ["Andreas Hartmann <hartan@7x.de>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Distribution-agnostic 'command not found'-handler"
readme = "README.md"
keywords = [
"command-not-found",
"command",
]
categories = ["command-line-utilities"]
license = "GPL-3.0-or-later"
repository = "https://gitlab.com/hartang/rust/cnf"
resolver = "2"
[lib]
name = "cnf_lib"
path = "src/lib.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.async-trait]
version = "0.1"
[dependencies.confy]
version = "0.5"
features = ["yaml_conf"]
default-features = false
[dependencies.displaydoc]
version = "0.2"
[dependencies.enum_dispatch]
version = "0.3.11"
[dependencies.futures]
version = "0.3.28"
[dependencies.is_executable]
version = "1.0"
[dependencies.logerr]
version = "0.2"
features = [
"log",
"anyhow",
]
default-features = false
[dependencies.regex]
version = "1.9.1"
[dependencies.serde]
version = "1.0"
[dependencies.serde_derive]
version = "1.0"
[dependencies.serde_json]
version = "1.0.96"
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
version = "1.32"
features = [
"io-util",
"fs",
"process",
]
default-features = false
[dependencies.tokio-util]
version = "0.7"
features = [
"io",
"codec",
]
[dependencies.tracing]
version = "0.1"
features = ["log"]
[dependencies.users]
version = "0.11"
[dependencies.which]
version = "4.4"
[lints.clippy]
all = "deny"
[lints.rust]
closure-returning-async-block = "forbid"
deprecated-in-future = "forbid"
elided-lifetimes-in-paths = "forbid"
ffi-unwind-calls = "forbid"
impl-trait-overcaptures = "forbid"
impl-trait-redundant-captures = "forbid"
let-underscore-drop = "forbid"
macro-use-extern-crate = "forbid"
meta-variable-misuse = "forbid"
missing-copy-implementations = "deny"
missing-debug-implementations = "forbid"
missing-docs = "forbid"
missing-unsafe-on-extern = "forbid"
non-ascii-idents = "forbid"
redundant-imports = "forbid"
redundant-lifetimes = "forbid"
single-use-lifetimes = "forbid"
tail-expr-drop-order = "forbid"
trivial-casts = "forbid"
trivial-numeric-casts = "forbid"
unit-bindings = "forbid"
unknown-lints = "deny"
unnameable-types = "forbid"
unreachable-pub = "forbid"
unsafe-attr-outside-unsafe = "forbid"
unsafe-code = "deny"
unstable-features = "forbid"
variant-size-differences = "forbid"
[lints.rust.unused]
level = "deny"
priority = 1
[lints.rust.warnings]
level = "deny"
priority = 1