-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
89 lines (80 loc) · 2.06 KB
/
Copy pathCargo.toml
File metadata and controls
89 lines (80 loc) · 2.06 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
[package]
name = "js-semver"
version = "0.3.0"
edition = "2024"
rust-version = "1.85"
description = "Parser and evaluator for npm's flavor of Semantic Versioning"
license = "MIT-0"
repository = "https://github.com/ryuapp/js-semver"
keywords = ["semver", "nodejs", "npm"]
categories = ["no-std"]
include = [
"src/**/*",
"benches/**/*",
"LICENSE",
"README.md",
]
[features]
default = ["std"]
std = []
serde = ["dep:serde"]
[dependencies]
serde = { package = "serde_core", version = "^1.0.220", optional = true }
[dev-dependencies]
serde_json = "1"
criterion2 = "3.0.3"
[[bench]]
name = "parse"
harness = false
[lints.rust]
unreachable_pub = "deny"
unused_qualifications = "deny"
missing_docs = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unit_bindings = "deny"
unnameable_types = "deny"
[lints.clippy]
# Enable all lint groups
all = { level = "warn", priority = -2 }
pedantic = { level = "warn", priority = -2 }
cargo = { level = "warn", priority = -2 }
restriction = { level = "warn", priority = -1 }
blanket_clippy_restriction_lints = "allow"
implicit_return = "allow"
question_mark_used = "allow"
missing_docs_in_private_items = "allow"
missing_inline_in_public_items = "allow"
missing_trait_methods = "allow"
min_ident_chars = "allow"
pub_use = "allow"
pub_with_shorthand = "allow"
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
single_char_lifetime_names = "allow"
pattern_type_mismatch = "allow"
decimal_literal_representation = "allow"
unseparated_literal_suffix = "allow"
std_instead_of_core = "allow"
shadow_reuse = "allow"
string_slice = "allow"
arithmetic_side_effects = "allow"
indexing_slicing = "allow"
map_err_ignore = "allow"
exhaustive_enums = "allow"
exhaustive_structs = "allow"
single_call_fn = "allow"
needless_doctest_main = "allow"
# Panic prevention (deny in production code)
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_in_result = "deny"
exit = "deny"
wildcard_imports = "deny"
dbg_macro = "deny"
print_stdout = "deny"
print_stderr = "deny"
inline_always = "deny"