-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
94 lines (86 loc) · 3.03 KB
/
Cargo.toml
File metadata and controls
94 lines (86 loc) · 3.03 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[package]
name = "rfc_reader"
version = "0.13.4"
edition = "2024"
description = "A TUI based RFC viewer"
repository = "https://github.com/ozan2003/rfc_reader"
keywords = [
"rust",
"caching",
"viewer",
"table-of-contents",
"tui",
"argument-parsing",
"offline-capable",
"text-search",
"http-request",
"rfcs",
"reader-ui",
"request-for-comments",
"command-line",
"ratatui",
]
license-file = "LICENSE"
[dependencies]
anyhow = "1.0.102"
bitflags = "2.11.0"
cached = "0.59.0"
clap = { version = "4.6.0", features = ["cargo"] }
# i'm only using event handling, no need for the serde, event-stream stuff
crossterm = { version = "0.29.0", default-features = false, features = [
"events",
] }
directories = "6.0.0"
env_logger = "0.11.10"
file-rotate = "0.8.0"
log = "0.4.29"
ratatui = "0.30.0"
regex = "1.12.3"
textwrap = "0.16.2"
# remove rustls from dependencies since im using native-tls anyway
ureq = { version = "3.3.0", default-features = false, features = [
"native-tls",
] }
[dev-dependencies]
tempfile = "3.27.0"
[lints.clippy]
correctness = { level = "forbid", priority = -1 }
perf = { level = "forbid", priority = -2 }
pedantic = { level = "deny", priority = -3 }
style = { level = "warn", priority = -4 }
complexity = { level = "warn", priority = -5 }
suspicious = { level = "warn", priority = -6 }
redundant-clone = { level = "warn", priority = -4 }
derive-partial-eq-without-eq = { level = "warn", priority = -5 }
unnecessary-struct-initialization = { level = "warn", priority = -6 }
redundant-pub-crate = { level = "warn", priority = -7 }
doc_paragraphs_missing_punctuation = { level = "warn", priority = -8 }
missing_docs_in_private_items = { level = "warn", priority = -9 }
missing-const-for-fn = { level = "deny", priority = -9 }
unnecessary_safety_doc = { level = "warn", priority = -10 }
undocumented_unsafe_blocks = { level = "deny", priority = -10 }
needless_raw_strings = { level = "warn", priority = -11 }
branches_sharing_code = { level = "warn", priority = -11 }
unused_trait_names = { level = "warn", priority = -12 }
min_ident_chars = { level = "forbid", priority = -12 }
uninlined-format-args = "allow"
arithmetic_side_effects = { level = "warn", priority = 0 }
unchecked_time_subtraction = { level = "deny", priority = 0 }
# Misc
multiple_unsafe_ops_per_block = { level = "warn", priority = 0 }
unwrap_used = { level = "warn", priority = 0 } # Prefer ? or expect
lossy_float_literal = { level = "warn", priority = 0 }
float_cmp = { level = "warn", priority = 0 }
float_cmp_const = { level = "warn", priority = 0 }
while_float = { level = "warn", priority = 0 }
string_slice = { level = "warn", priority = 0 }
get_unwrap = { level = "warn", priority = 0 }
mem_forget = { level = "warn", priority = 0 }
use_self = { level = "warn", priority = 0 }
useless_let_if_seq = { level = "warn", priority = 0 }
str_to_string = { level = "warn", priority = 0 }
if_then_some_else_none = { level = "warn", priority = 0 }
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"