-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
56 lines (49 loc) · 1.55 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
[package]
name = "aleph-compiler"
version = "0.9.4"
description = "The compiler of Aleph.js written in Rust."
repository = "https://github.com/alephjs/aleph.js"
authors = ["The Aleph.js authors"]
license = "MIT"
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
anyhow = "1.0.69"
base64 = "0.21.0"
import_map = "0.15.0"
path-slash = "0.2.1"
pathdiff = "0.2.1"
regex = "1.7.1"
serde = { version = "1.0.152", features = ["derive"] }
serde_json = "1.0.94"
url = "2.3.1"
# parcel css
cssparser = "0.29.6"
lightningcss = "1.0.0-alpha.40"
parcel_sourcemap = "2.1.1"
# swc
# docs: https://swc.rs
# crate: https://crates.io/search?q=swc_ecmascript
swc_atoms = "0.4.38"
swc_common = { version = "0.29.33", features = ["sourcemap", "perf"] }
swc_ecmascript = { version = "0.218.6", features = ["codegen", "parser", "utils", "visit"] }
swc_ecma_transforms = { version = "0.208.4", features = ["proposal", "typescript", "react", "compat", "optimization" ] }
swc_ecma_minifier = "0.171.5"
# wasm-bindgen
# docs: https://rustwasm.github.io/docs/wasm-bindgen
wasm-bindgen = { version = "0.2.84", features = ["serde-serialize"] }
serde-wasm-bindgen = "0.5.0"
console_error_panic_hook = { version = "0.1.7", optional = true }
js-sys = "0.3.61"
[features]
default = ["console_error_panic_hook"]
[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'
# link time optimization using using whole-program analysis
lto = true