-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
68 lines (58 loc) · 1.56 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
[package]
name = "ratchet"
version = "0.1.0"
description = "A pure Rust-language implementation of the TACACS+ protocol."
edition = "2021"
repository = "https://github.com/meltyness/ratchet"
readme = "README.md"
license = "MIT"
keywords = ["tacacs", "security", "identity"]
categories = ["Network programming"]
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = 'abort'
incremental = false
debug = false
[profile.dev]
incremental = true
[dependencies]
md5 = "0.7.0"
precis-profiles = "0.1.11"
ctrlc = "3.4.5"
pwhash = "1.0.0"
tokio = { version = "1.42.0", features = ["full"] }
flex-alloc-secure = "0.0.1"
[lints.rust]
non_camel_case_types = "allow"
unused_variables = "allow"
dead_code = "allow"
non_snake_case = "allow"
# a-ha! https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html#lint-configuration-through-cargo
[lints.clippy]
# Maintainability
cargo = { level = "warn", priority = -1 }
# Panics / Crashes
arithmetic_side_effects = "warn"
fallible_impl_from = "warn"
get_unwrap = "warn"
index_refutable_slice = "warn"
inline_always = "warn"
manual_assert = "warn"
match_on_vec_items = "warn"
match_wild_err_arm = "warn"
missing_assert_message = "warn"
should_panic_without_expect = "warn"
unchecked_duration_subtraction = "warn"
missing_panics_doc = "warn"
cast_possible_truncation = "warn"
indexing_slicing = "warn"
panic_in_result_fn = "warn"
string_slice = "warn"
panic = "warn"
expect_used = "warn"
unreachable = "warn"
unimplemented = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"