-
-
Notifications
You must be signed in to change notification settings - Fork 504
/
Cargo.toml
224 lines (211 loc) · 11.1 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
[workspace]
# Use the newer version of the cargo resolver
# https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
members = ["crates/*", "xtask/bench", "xtask/codegen", "xtask/coverage", "xtask/libs_bench", "xtask/rules_check"]
resolver = "2"
[workspace.lints.rust]
absolute_paths_not_starting_with_crate = "warn"
dead_code = "warn"
trivial_numeric_casts = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
[workspace.lints.clippy]
cargo_common_metadata = "allow"
empty_docs = "allow" # there are some false positives inside biome_wasm
multiple_crate_versions = "allow"
# pedantic
assigning_clones = "warn"
checked_conversions = "warn"
cloned_instead_of_copied = "warn"
copy_iterator = "warn"
dbg_macro = "warn"
doc_link_with_quotes = "warn"
empty_enum = "warn"
expl_impl_clone_on_copy = "warn"
explicit_into_iter_loop = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
fn_params_excessive_bools = "warn"
from_iter_instead_of_collect = "warn"
implicit_clone = "warn"
implicit_hasher = "warn"
index_refutable_slice = "warn"
inefficient_to_string = "warn"
invalid_upcast_comparisons = "warn"
iter_filter_is_ok = "warn"
iter_not_returning_iterator = "warn"
large_stack_arrays = "warn"
large_types_passed_by_value = "warn"
macro_use_imports = "warn"
manual_is_variant_and = "warn"
manual_ok_or = "warn"
manual_string_new = "warn"
map_flatten = "warn"
map_unwrap_or = "warn"
mismatching_type_param_order = "warn"
mut_mut = "warn"
naive_bytecount = "warn"
needless_bitwise_bool = "warn"
needless_continue = "warn"
needless_for_each = "warn"
no_effect_underscore_binding = "warn"
option_as_ref_cloned = "warn"
ref_binding_to_reference = "warn"
ref_option_ref = "warn"
single_char_pattern = "warn"
stable_sort_primitive = "warn"
str_split_at_newline = "warn"
unnecessary_box_returns = "warn"
unnecessary_join = "warn"
unnested_or_patterns = "warn"
unreadable_literal = "warn"
verbose_bit_mask = "warn"
zero_sized_map_values = "warn"
# restriction
cfg_not_test = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
float_cmp_const = "warn"
get_unwrap = "warn"
infinite_loop = "warn"
lossy_float_literal = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
rest_pat_in_fully_bound_structs = "warn"
string_lit_chars_any = "warn"
verbose_file_reads = "warn"
# https://github.com/rustwasm/wasm-bindgen/issues/3944
#mem_forget = "warn"
[workspace.package]
authors = ["Biome Developers and Contributors"]
categories = ["development-tools", "web-programming"]
edition = "2021"
homepage = "https://biomejs.dev/"
keywords = ["parser", "linter", "formatter"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/biomejs/biome"
[profile.release-with-debug]
debug = true
inherits = "release"
[workspace.dependencies]
# publish
biome_analyze = { version = "0.5.7", path = "./crates/biome_analyze" }
biome_aria = { version = "0.5.7", path = "./crates/biome_aria" }
biome_aria_metadata = { version = "0.5.7", path = "./crates/biome_aria_metadata" }
biome_console = { version = "0.5.7", path = "./crates/biome_console" }
biome_control_flow = { version = "0.5.7", path = "./crates/biome_control_flow" }
biome_css_analyze = { version = "0.5.7", path = "./crates/biome_css_analyze" }
biome_css_factory = { version = "0.5.7", path = "./crates/biome_css_factory" }
biome_css_formatter = { version = "0.5.7", path = "./crates/biome_css_formatter" }
biome_css_parser = { version = "0.5.7", path = "./crates/biome_css_parser" }
biome_css_semantic = { version = "0.0.0", path = "./crates/biome_css_semantic" }
biome_css_syntax = { version = "0.5.7", path = "./crates/biome_css_syntax" }
biome_deserialize = { version = "0.6.0", path = "./crates/biome_deserialize" }
biome_deserialize_macros = { version = "0.6.0", path = "./crates/biome_deserialize_macros" }
biome_diagnostics = { version = "0.5.7", path = "./crates/biome_diagnostics" }
biome_diagnostics_categories = { version = "0.5.7", path = "./crates/biome_diagnostics_categories" }
biome_diagnostics_macros = { version = "0.5.7", path = "./crates/biome_diagnostics_macros" }
biome_formatter = { version = "0.5.7", path = "./crates/biome_formatter" }
biome_fs = { version = "0.5.7", path = "./crates/biome_fs" }
biome_glob = { version = "0.1.0", path = "./crates/biome_glob" }
biome_graphql_analyze = { version = "0.0.1", path = "./crates/biome_graphql_analyze" }
biome_graphql_factory = { version = "0.1.0", path = "./crates/biome_graphql_factory" }
biome_graphql_formatter = { version = "0.1.0", path = "./crates/biome_graphql_formatter" }
biome_graphql_parser = { version = "0.1.0", path = "./crates/biome_graphql_parser" }
biome_graphql_semantic = { version = "0.0.0", path = "./crates/biome_graphql_semantic" }
biome_graphql_syntax = { version = "0.1.0", path = "./crates/biome_graphql_syntax" }
biome_grit_factory = { version = "0.5.7", path = "./crates/biome_grit_factory" }
biome_grit_formatter = { version = "0.0.0", path = "./crates/biome_grit_formatter" }
biome_grit_parser = { version = "0.1.0", path = "./crates/biome_grit_parser" }
biome_grit_patterns = { version = "0.0.1", path = "./crates/biome_grit_patterns" }
biome_grit_syntax = { version = "0.5.7", path = "./crates/biome_grit_syntax" }
biome_html_factory = { version = "0.5.7", path = "./crates/biome_html_factory" }
biome_html_formatter = { version = "0.0.0", path = "./crates/biome_html_formatter" }
biome_html_parser = { version = "0.0.1", path = "./crates/biome_html_parser" }
biome_html_syntax = { version = "0.5.7", path = "./crates/biome_html_syntax" }
biome_js_analyze = { version = "0.5.7", path = "./crates/biome_js_analyze" }
biome_js_factory = { version = "0.5.7", path = "./crates/biome_js_factory" }
biome_js_formatter = { version = "0.5.7", path = "./crates/biome_js_formatter" }
biome_js_parser = { version = "0.5.7", path = "./crates/biome_js_parser" }
biome_js_semantic = { version = "0.5.7", path = "./crates/biome_js_semantic" }
biome_js_syntax = { version = "0.5.7", path = "./crates/biome_js_syntax" }
biome_json_analyze = { version = "0.5.7", path = "./crates/biome_json_analyze" }
biome_json_factory = { version = "0.5.7", path = "./crates/biome_json_factory" }
biome_json_formatter = { version = "0.5.7", path = "./crates/biome_json_formatter" }
biome_json_parser = { version = "0.5.7", path = "./crates/biome_json_parser" }
biome_json_syntax = { version = "0.5.7", path = "./crates/biome_json_syntax" }
biome_lsp_converters = { version = "0.1.0", path = "./crates/biome_lsp_converters" }
biome_markdown_factory = { version = "0.0.1", path = "./crates/biome_markdown_factory" }
biome_markdown_parser = { version = "0.0.1", path = "./crates/biome_markdown_parser" }
biome_markdown_syntax = { version = "0.0.1", path = "./crates/biome_markdown_syntax" }
biome_ungrammar = { version = "0.3.1", path = "./crates/biome_ungrammar" }
biome_yaml_factory = { version = "0.0.1", path = "./crates/biome_yaml_factory" }
biome_yaml_parser = { version = "0.0.1", path = "./crates/biome_yaml_parser" }
biome_yaml_syntax = { version = "0.0.1", path = "./crates/biome_yaml_syntax" }
biome_markup = { version = "0.5.7", path = "./crates/biome_markup" }
biome_parser = { version = "0.5.7", path = "./crates/biome_parser" }
biome_project = { version = "0.5.7", path = "./crates/biome_project" }
biome_rowan = { version = "0.5.7", path = "./crates/biome_rowan" }
biome_string_case = { version = "0.5.7", path = "./crates/biome_string_case" }
biome_suppression = { version = "0.5.7", path = "./crates/biome_suppression" }
biome_text_edit = { version = "0.5.7", path = "./crates/biome_text_edit" }
biome_text_size = { version = "0.5.7", path = "./crates/biome_text_size" }
biome_unicode_table = { version = "0.5.7", path = "./crates/biome_unicode_table" }
# not publish
biome_cli = { path = "./crates/biome_cli" }
biome_configuration = { path = "./crates/biome_configuration" }
biome_flags = { path = "./crates/biome_flags" }
biome_formatter_test = { path = "./crates/biome_formatter_test" }
biome_lsp = { path = "./crates/biome_lsp" }
biome_migrate = { path = "./crates/biome_migrate" }
biome_service = { path = "./crates/biome_service" }
biome_test_utils = { path = "./crates/biome_test_utils" }
tests_macros = { path = "./crates/tests_macros" }
# Crates needed in the workspace
anyhow = "1.0.95"
bpaf = { version = "0.9.15", features = ["derive"] }
countme = "3.0.1"
crossbeam = "0.8.4"
dashmap = "6.1.0"
enumflags2 = "0.7.10"
getrandom = "0.2.15"
globset = "0.4.15"
ignore = "0.4.23"
indexmap = { version = "2.7.0", features = ["serde"] }
insta = "1.41.1"
natord = "1.0.9"
oxc_resolver = "3.0.3"
proc-macro2 = "1.0.86"
quickcheck = "1.0.3"
quickcheck_macros = "1.0.0"
quote = "1.0.37"
rayon = "1.10.0"
regex = "1.11.1"
rustc-hash = "2.1.0"
schemars = { version = "0.8.21", features = ["indexmap2", "smallvec"] }
serde = { version = "1.0.216", features = ["derive"] }
serde_ini = "0.2.0"
serde_json = "1.0.134"
similar = "2.6.0"
slotmap = "1.0.7"
smallvec = { version = "1.13.2", features = ["union", "const_new", "serde"] }
syn = "1.0.109"
termcolor = "1.4.1"
tokio = "1.42.0"
tracing = { version = "0.1.41", default-features = false, features = ["std"] }
tracing-subscriber = "0.3.19"
unicode-bom = "2.0.3"
unicode-width = "0.1.12"
[profile.dev.package.biome_wasm]
debug = true
opt-level = "s"
[profile.test.package.biome_wasm]
debug = true
opt-level = "s"
[profile.release.package.biome_wasm]
debug = false
opt-level = 3
#[patch.crates-io]
#grit-pattern-matcher = { path = "../gritql/crates/grit-pattern-matcher" }
#grit-util = { path = "../gritql/crates/grit-util" }