-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
56 lines (47 loc) · 1.35 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
[workspace]
members = ["./napi", "./wasm"]
[package]
name = "tree-shake"
version = "0.1.0"
edition = "2021"
[lib]
[features]
flame = ["dep:flame", "dep:flamescope"]
[dependencies]
bitflags = "2.6.0"
clap = { version = "4.5.20", features = ["derive"] }
dashmap = "6.0.1"
flame = { version = "0.2.2", optional = true }
flamescope = { version = "0.1.3", optional = true }
insta = { version = "1.39.0", features = ["glob"] }
line-index = "0.1.2"
oxc = { version = "0.44.0", features = ["codegen", "semantic", "minifier"] }
oxc_ecmascript = "0.44.0"
oxc_index = "2.0.0"
oxc_syntax = { version = "0.44.0", features = ["to_js_string"] }
regex = "1.10.6"
rustc-hash = "2.0.0"
[dev-dependencies]
codspeed-criterion-compat = "2.7.2"
criterion = "0.5.1"
[[bench]]
name = "basic"
harness = false
[profile.release]
# Configurations explicitly listed here for clarity.
# Using the best options for performance.
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols" # Set to `false` for debug information
debug = false # Set to `true` for debug information
panic = "abort" # Let it crash and force ourselves to write safe Rust
[lints.clippy]
dbg_macro = "deny"
empty_drop = "deny"
filetype_is_file = "deny"
get_unwrap = "deny"
rest_pat_in_fully_bound_structs = "deny"
unnecessary_safety_comment = "deny"
missing_transmute_annotations = "allow"
too_many_arguments = "allow"