You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# I want to write the best Rust code so both pedantic and nursery is enabled.
51
51
# We should only disable rules globally if they are either false positives, chaotic, or does not make sense.
52
-
nursery= { level = "warn", priority = -1 }
52
+
nursery = { level = "warn", priority = -1 }
53
53
pedantic = { level = "warn", priority = -1 }
54
54
# Allowed rules
55
55
# pedantic
56
56
# This rule is too pedantic, I don't want to force this because naming things are hard.
57
57
module_name_repetitions = "allow"
58
-
doc_markdown= "allow"
58
+
doc_markdown = "allow"
59
59
# cargo
60
60
multiple_crate_versions = "allow"
61
61
62
62
[[example]]
63
63
name = "resolver"
64
64
65
65
[dependencies]
66
-
tracing = "0.1"
66
+
cfg-if = "1"
67
67
dashmap = "6"
68
-
serde = { version = "1", features = ["derive"] } # derive for Deserialize from package.json
69
-
serde_json = { version = "1", features = [
70
-
"preserve_order",
71
-
] } # preserve_order: package_json.exports requires order such as `["require", "import", "default"]`
72
-
rustc-hash = { version = "2" }
73
-
once_cell = "1"# Use `std::sync::OnceLock::get_or_try_init` when it is stable.
74
-
thiserror = "1"
75
-
json-strip-comments = "1"
76
68
indexmap = { version = "2", features = ["serde"] }
77
-
cfg-if = "1"
69
+
json-strip-comments = "1"
70
+
once_cell = "1"# Use `std::sync::OnceLock::get_or_try_init` when it is stable.
71
+
rustc-hash = { version = "2" }
72
+
serde = { version = "1", features = ["derive"] } # derive for Deserialize from package.json
73
+
serde_json = { version = "1", features = ["preserve_order"] } # preserve_order: package_json.exports requires order such as `["require", "import", "default"]`
78
74
simdutf8 = { version = "0.1" }
75
+
thiserror = "1"
76
+
tracing = "0.1"
79
77
80
78
pnp = { version = "0.9.0", optional = true }
81
79
82
80
document-features = { version = "0.2.10", optional = true }
83
81
84
82
[dev-dependencies]
85
-
vfs = "0.12.0"# for testing with in memory file system
86
-
rayon = { version = "1.10.0" }
87
-
criterion2 = { version = "2.0.0", default-features = false }
83
+
criterion2 = { version = "2.0.0", default-features = false }
88
84
normalize-path = { version = "0.2.1" }
85
+
rayon = { version = "1.10.0" }
86
+
vfs = "0.12.0"# for testing with in memory file system
0 commit comments