forked from rolldown/rolldown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
134 lines (117 loc) · 5.32 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[workspace]
members = ["./crates/*"]
resolver = "2"
[workspace.package]
edition = "2021"
homepage = "https://rolldown.rs/"
license = "MIT"
repository = "https://github.com/rolldown/rolldown"
[profile.release-debug]
debug = true
inherits = "release"
[profile.release-wasi]
codegen-units = 16
debug = 'full'
inherits = "release"
lto = "thin"
opt-level = "z"
strip = "none"
[workspace.lints.rust]
[workspace.lints.clippy]
# Guidelines
# - We should only disable rules globally if they are either false positives, chaotic, or does not make sense.
# - Group are enabled with priority -1, so we could easily override some specific rules.
# - https://doc.rust-lang.org/stable/cargo/reference/manifest.html#the-lints-section
# --- restriction https://doc.rust-lang.org/clippy/usage.html#clippyrestriction
dbg_macro = "deny"
print_stdout = "deny"
# I like the explicitness of this rule as it removes confusion around `clone`.
# This increases readability, avoids `clone` mindlessly and heap allocating on accident.
clone_on_ref_ptr = "deny"
empty_drop = "deny"
exit = "deny"
filetype_is_file = "deny"
get_unwrap = "deny"
rc_buffer = "deny"
rc_mutex = "deny"
rest_pat_in_fully_bound_structs = "deny"
unnecessary_safety_comment = "deny"
# --- pedantic #https://doc.rust-lang.org/clippy/usage.html#clippypedantic
# To write the best rust code, pedantic group is enabled by default.
pedantic = { level = "deny", priority = -1 }
# Wizards, naming is too hard.
module_inception = "allow"
module_name_repetitions = "allow"
similar_names = "allow"
# Forwarding `Result` is a common pattern, this rule is too pedantic.
missing_errors_doc = "allow"
# #[must_use] is creating too much noise for this codebase, it does not add much value except nagging
# the programmer to add a #[must_use] after clippy has been run.
# Having #[must_use] everywhere also hinders readability.
must_use_candidate = "allow"
doc_markdown = "allow"
missing_const_for_fn = "allow"
needless_for_each = "allow"
new_without_default = "allow"
# TODO: should review this rule.
missing_panics_doc = "allow"
# Order doesn't really matter https://rust-lang.github.io/rust-clippy/master/index.html#/inconsistent_struct_constructor
inconsistent_struct_constructor = "allow"
# Single match is equally readable as if/else. https://rust-lang.github.io/rust-clippy/master/index.html#/single_match
single_match = "allow"
[workspace.dependencies]
rolldown = { version = "0.1.0", path = "./crates/rolldown" }
rolldown_common = { version = "0.0.1", path = "./crates/rolldown_common" }
rolldown_error = { version = "0.0.1", path = "./crates/rolldown_error" }
rolldown_fs = { version = "0.1.0", path = "./crates/rolldown_fs" }
rolldown_oxc_utils = { version = "0.1.0", path = "./crates/rolldown_oxc_utils" }
rolldown_plugin = { version = "0.1.0", path = "./crates/rolldown_plugin" }
rolldown_resolver = { version = "0.0.1", path = "./crates/rolldown_resolver" }
rolldown_rstr = { version = "0.0.1", path = "./crates/rolldown_rstr" }
rolldown_sourcemap = { version = "0.1.0", path = "./crates/rolldown_sourcemap" }
rolldown_testing = { version = "0.0.1", path = "./crates/rolldown_testing" }
rolldown_testing_config = { version = "0.0.1", path = "./crates/rolldown_testing_config" }
rolldown_tracing = { version = "0.0.1", path = "./crates/rolldown_tracing" }
rolldown_utils = { version = "0.0.1", path = "./crates/rolldown_utils" }
anyhow = "1.0.82"
ariadne = "0.4.1"
async-channel = "2.2.1"
async-scoped = { version = "0.9.0" }
async-trait = "0.1.80"
base64 = "0.22.1"
dashmap = "5.5.3"
derivative = "2.2.0"
dunce = "1.0.4" # Normalize Windows paths to the most compatible format, avoiding UNC where possible
futures = "0.3.30"
glob = "0.3.1"
index_vec = "0.1.3"
indexmap = "2.2.6"
insta = "1.38.0"
memchr = "2.7.2"
mimalloc = "0.1.41"
napi = { version = "3.0.0-alpha", features = ["async"] }
napi-build = { version = "2.1.3" }
napi-derive = { version = "3.0.0-alpha.1", default-features = false, features = ["type-def"] }
once_cell = "1.19.0"
oxc = { version = "0.12.5", features = ["sourcemap"] }
oxc_resolver = { version = "1.7.0", features = ["package_json_raw_json_api"] }
rayon = "1.10.0"
regex = "1.10.4"
rustc-hash = "1.1.0"
schemars = "0.8.17"
self_cell = "1.0.3"
serde = { version = "1.0.199", features = ["derive"] }
serde_json = "1.0.116"
smallvec = "1.13.2"
sugar_path = { version = "1.2.0", features = ["cached_current_dir"] }
testing_macros = "0.2.13"
tokio = { version = "1.37.0", default-features = false }
tracing = "0.1.40"
tracing-chrome = "0.7.2"
tracing-subscriber = "0.3.18"
vfs = "0.12.0"
xxhash-rust = "0.8.10"
[profile.release]
codegen-units = 1
lto = true
strip = "symbols"