-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
68 lines (60 loc) · 2.26 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# SPDX-FileCopyrightText: 2022 - 2024 Robin Vobruba <hoijui.quaero@gmail.com>
#
# SPDX-License-Identifier: Unlicense
[package]
# NOTE We use the "_hoijui" postfix, because we assume
# that this crate will not be of much interest
# to the general public.
# This allows us to publish it anyway,
# without blocking the short name
# for a more meaningful crate in the future.
name = "cli_utils_hoijui"
version = "0.9.0"
license = "AGPL-3.0-or-later"
authors = ["Robin Vobruba <hoijui.quaero@gmail.com>"]
description = """
A tiny CLI utilities library,
providing functions and constants useful in many CLI tools.
"""
repository = "https://github.com/hoijui/cli-utils-rs"
homepage = "https://github.com/hoijui/cli-utils-rs"
keywords = ["cli", "utility"]
categories = ["command-line-utilities", "command-line-interface", "config", "rust-patterns"]
readme = "README.md"
edition = "2021"
[lints.rust]
rust_2021_compatibility = { level = "warn", priority = -1 }
[lints.clippy]
all = { level = "deny", priority = -1 }
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }
wildcard_enum_match_arm = "warn"
string_slice = "warn"
indexing_slicing = "warn"
clone_on_ref_ptr = "warn"
try_err = "warn"
shadow_reuse = "warn"
empty_structs_with_brackets = "warn"
else_if_without_else = "warn"
use_debug = "warn"
print_stdout = "warn"
print_stderr = "warn"
[dependencies]
log = { version = "0.4", default-features = false, optional = true }
once_cell = "1.19"
thiserror = { version = "1.0", default-features = false, optional = true }
tracing = { version = "0.1", default-features = false, optional = true }
tracing-subscriber = { version = "0.3", default-features = false, features = ["env-filter", "fmt"], optional = true }
url = { version = "2.5", default-features = false, optional = true }
[features]
default = []
# Allow to reduce dependencies,
# if logging/tracing is not requried.
logging = ["dep:log", "dep:tracing", "dep:tracing-subscriber"]
# Allow to reduce dependencies,
# if the `std_errors::Error` enum is not requried.
std_error = ["dep:thiserror"]
# Allow to reduce dependencies,
# if the `std_errors::Error::InvalidUrl` enum variant is not requried.
url_parse_error = ["std_error", "dep:url"]