-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathCargo.toml
More file actions
155 lines (139 loc) · 3.7 KB
/
Cargo.toml
File metadata and controls
155 lines (139 loc) · 3.7 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
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
[workspace]
resolver = "3"
members = ["crates/*", "napi/angular-compiler"]
[workspace.package]
authors = ["LongYinan <brooklyn@voidzero.dev>"]
categories = ["compilers", "web-programming"]
homepage = "https://oxc.rs"
keywords = ["Angular", "compiler", "TypeScript"]
license = "MIT"
repository = "https://github.com/voidzero-dev/oxc-angular-compiler"
description = "Angular compiler built with Oxc"
edition = "2024"
rust-version = "1.90.0"
# <https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html>
[workspace.lints.rust]
absolute_paths_not_starting_with_crate = "warn"
non_ascii_idents = "warn"
unit-bindings = "warn"
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)', 'cfg(coverage_nightly)'] }
tail_expr_drop_order = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_unsafe = "warn"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
# restriction
dbg_macro = "warn"
todo = "warn"
unimplemented = "warn"
print_stdout = "warn"
print_stderr = "warn"
allow_attributes = "warn"
clone_on_ref_ptr = "warn"
self_named_module_files = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
filetype_is_file = "warn"
get_unwrap = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
rest_pat_in_fully_bound_structs = "warn"
unnecessary_safety_comment = "warn"
undocumented_unsafe_blocks = "warn"
infinite_loop = "warn"
map_with_unused_argument_over_ranges = "warn"
unused_result_ok = "warn"
pathbuf_init_then_push = "warn"
# pedantic
pedantic = { level = "warn", priority = -1 }
struct_excessive_bools = "allow"
too_many_lines = "allow"
must_use_candidate = "allow"
wildcard_imports = "allow"
doc_markdown = "allow"
similar_names = "allow"
fn_params_excessive_bools = "allow"
complexity = { level = "warn", priority = -1 }
too_many_arguments = "allow"
non_std_lazy_statics = "allow"
# nursery
nursery = { level = "warn", priority = -1 }
missing_const_for_fn = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
cognitive_complexity = "allow"
non_send_fields_in_send_ty = "allow"
use_self = "allow"
significant_drop_tightening = "allow"
branches_sharing_code = "allow"
fallible_impl_from = "allow"
useless_let_if_seq = "allow"
impl_trait_in_params = "allow"
significant_drop_in_scrutinee = "warn"
iter_on_single_items = "warn"
unused_peekable = "warn"
too_long_first_doc_paragraph = "warn"
suspicious_operation_groupings = "warn"
redundant_clone = "warn"
zero_sized_map_values = "allow"
# cargo
cargo = { level = "warn", priority = -1 }
multiple_crate_versions = "allow"
[workspace.dependencies]
# External oxc crates from crates.io
oxc_allocator = "0.121"
oxc_ast = "0.121"
oxc_ast_visit = "0.121"
oxc_diagnostics = "0.121"
oxc_napi = "0.121"
oxc_parser = "0.121"
oxc_semantic = "0.121"
oxc_span = "0.121"
oxc_sourcemap = "6.0.1"
# Internal
oxc_angular_compiler = { path = "crates/oxc_angular_compiler" }
# NAPI dependencies
napi = { version = "3", features = ["tokio_rt"] }
napi-build = "2"
napi-derive = "3"
# Common dependencies
indexmap = "2"
rustc-hash = "2"
serde = "1"
serde_json = "1"
# Other dependencies
insta = "1.43.2"
lazy-regex = "3.5.1"
miette = { package = "oxc-miette", version = "2.7.0", features = ["fancy-no-syscall"] }
mimalloc-safe = "0.1.56"
pico-args = "0.5.0"
project-root = "0.2.2"
similar = "2.7.0"
[workspace.metadata.cargo-shear]
ignored = []
[profile.dev]
debug = false
[profile.test]
debug = false
[profile.dev.package]
insta.opt-level = 3
similar.opt-level = 3
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"
debug = false
panic = "abort"
[profile.release-with-debug]
inherits = "release"
strip = false
debug = true
[profile.coverage]
inherits = "release"
opt-level = 2
codegen-units = 256
lto = "thin"
debug-assertions = true
overflow-checks = true