-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
35 lines (30 loc) · 926 Bytes
/
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
[package]
name = "cjs-module-lexer"
version = "0.0.0"
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
indexmap = "2.6.0"
serde = { version = "1.0.215", features = ["derive"] }
# swc
# docs: https://swc.rs
# crate: https://crates.io/search?q=swc
swc_common = { version = "4.0.0" }
swc_ecmascript = { version = "5.0.0", features = ["parser", "visit"] }
# wasm-bindgen
# docs: https://rustwasm.github.io/docs/wasm-bindgen
wasm-bindgen = { version = "0.2.95", features = ["serde-serialize"] }
serde-wasm-bindgen = "0.6.5"
getrandom = { version = "0.2.15", features = ["js"] }
[profile.release]
# less code to include into binary
panic = 'abort'
# optimization over all codebase (better optimization, slower build)
codegen-units = 1
# optimization for size (more aggressive)
opt-level = 'z'
# optimization for size
# opt-level = 's'
# link time optimization using using whole-program analysis
lto = true