-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
85 lines (69 loc) · 3.23 KB
/
Cargo.toml
File metadata and controls
85 lines (69 loc) · 3.23 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
# # # # # # # # # # # # # # # # # # # #
# #
# PACKAGE #
# #
# # # # # # # # # # # # # # # # # # # #
[package]
name = "pair"
version = "0.2.0"
authors = ["Isaac Chen"]
edition = "2024"
rust-version = "1.85.0"
description = "Safe API for generic self-referential pairs of owner and dependent."
documentation = "https://docs.rs/pair"
readme = "README.md"
repository = "https://github.com/ijchen/pair"
license = "MIT OR Apache-2.0"
keywords = ["self-referential", "data-structures", "memory", "ownership", "no_std"]
categories = ["memory-management", "rust-patterns", "no-std", "data-structures"]
include = ["/src/", "/Cargo.toml", "/README.md", "/CHANGELOG.md", "/LICENSE-*"]
# # # # # # # # # # # # # # # # # # # #
# #
# DEPENDENCIES #
# #
# # # # # # # # # # # # # # # # # # # #
[dependencies]
# No dependencies
[dev-dependencies]
loom = "0.7.2"
# # # # # # # # # # # # # # # # # # # #
# #
# LINTS #
# #
# # # # # # # # # # # # # # # # # # # #
[lints.rust]
# "deprecated_safe" lint group
deprecated_safe = { level = "warn", priority = -1 }
# "future_incompatible" lint group
future_incompatible = { level = "warn", priority = -1 }
# "keyword_idents" lint group
keyword_idents = { level = "warn", priority = -1 }
# Cherry-picked lint overrides
unstable_features = "forbid" # do not permit nightly-only features
elided_lifetimes_in_paths = "warn" # elided lifetimes are unclear
missing_debug_implementations = "warn" # all public types should impl Debug
missing_docs = "warn" # all public items should be documented
non_ascii_idents = "warn" # non-ASCII identifiers could be confusing
redundant_imports = "warn" # redundant imports are unnecessary
redundant_lifetimes = "warn" # duplicate identical lifetimes are unnecessary
single_use_lifetimes = "warn" # single-use lifetimes are unnecessary
unnameable_types = "warn" # unnameable types should be considered case-by-case
unused_qualifications = "warn" # overly-qualified paths decrease readability
[lints.clippy]
# "pedantic" lint group
pedantic = { level = "warn", priority = -1 }
must_use_candidate = "allow" # too many false positives
# "cargo" lint group
cargo = { level = "warn", priority = -1 }
# Cherry-picked lint overrides
multiple_unsafe_ops_per_block = "forbid" # enforce all unsafe ops have a SAFETY comment
undocumented_unsafe_blocks = "forbid" # enforce all unsafe ops have a SAFETY comment
unnecessary_safety_comment = "warn" # unnecessary SAFETY comments would be confusing
unnecessary_safety_doc = "warn" # unnecessary "# Safety" sections would be confusing
allow_attributes = "warn" # prefer #[expect(..)]
allow_attributes_without_reason = "warn" # should always include a reason
dbg_macro = "warn" # this macro should only be used during development
todo = "warn" # this macro should only be used during development
cognitive_complexity = "warn" # can be #[expect(..)]ed, but useful as a warning
too_long_first_doc_paragraph = "warn" # first doc paragraph should be brief
use_self = "warn" # `Self` is more clear when applicable