-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
58 lines (52 loc) · 1.64 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
[workspace]
resolver = "2"
members = ["crates/*", "packages/napi", "packages/wasm", "tasks/benchmark"]
[workspace.package]
authors = ["_Kerman <[email protected]>"]
categories = ["compilers", "development-tools", "web-programming"]
edition = "2021"
homepage = "https://kermanx.github.io/tree-shaker"
keywords = ["JavaScript", "TypeScript", "oxc"]
license = "MIT"
repository = "https://github.com/KermanX/tree-shaker"
rust-version = "1.78" # Should sync with oxc
description = "An experimental tree shaker for JS based on Oxc."
[workspace.dependencies]
tree_shaker = { path = "crates/tree_shaker" }
bitflags = "2.6.0"
clap = "4.5.20"
dashmap = "6.0.1"
flame = "0.2.2"
flamescope = "0.1.3"
line-index = "0.1.2"
oxc = "0.46.0"
oxc_ecmascript = "0.46.0"
oxc_index = "2.0.0"
oxc_syntax = "0.46.0"
regex = "1.10.6"
rustc-hash = "2.0.0"
insta = "1.39.0"
criterion = { package = "codspeed-criterion-compat", version = "*" }
napi = "2.12.2"
napi-derive = "2.12.2"
napi-build = "2.0.1"
console_error_panic_hook = "0.1.7"
wasm-bindgen = "0.2.93"
[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
[workspace.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"