2017-12-22 15:51:36 +03:00
|
|
|
[workspace]
|
2021-08-25 18:07:09 +03:00
|
|
|
members = [
|
2023-10-05 11:34:51 +03:00
|
|
|
"xtask",
|
2024-07-10 12:47:14 +03:00
|
|
|
"crates/swc_allocator",
|
2022-08-02 10:25:59 +03:00
|
|
|
"crates/swc_core",
|
2023-10-02 18:46:14 +03:00
|
|
|
"crates/swc_cli_impl",
|
2022-05-13 09:05:21 +03:00
|
|
|
"crates/dbg-swc",
|
2021-11-10 10:39:01 +03:00
|
|
|
"crates/jsdoc",
|
2022-08-10 06:10:19 +03:00
|
|
|
"crates/binding_macros",
|
2021-11-12 13:37:05 +03:00
|
|
|
"crates/swc_css",
|
2022-02-27 18:31:19 +03:00
|
|
|
"crates/swc_css_lints",
|
2022-03-25 13:46:45 +03:00
|
|
|
"crates/swc_css_prefixer",
|
2021-11-12 13:37:05 +03:00
|
|
|
"crates/swc_ecmascript",
|
2021-12-19 15:07:51 +03:00
|
|
|
"crates/swc_ecma_lints",
|
2022-02-27 16:21:38 +03:00
|
|
|
"crates/swc_ecma_quote",
|
2021-11-23 23:34:41 +03:00
|
|
|
"crates/swc_estree_compat",
|
2022-04-04 07:12:45 +03:00
|
|
|
"crates/swc_html",
|
2021-11-09 14:42:49 +03:00
|
|
|
"crates/swc_plugin",
|
2022-01-12 12:32:52 +03:00
|
|
|
"crates/swc_plugin_macro",
|
2021-11-09 14:42:49 +03:00
|
|
|
"crates/swc_plugin_runner",
|
|
|
|
"crates/swc_plugin_testing",
|
2022-04-09 10:47:43 +03:00
|
|
|
"crates/swc_plugin_proxy",
|
2021-11-22 15:01:08 +03:00
|
|
|
"crates/swc_timer",
|
2022-08-01 06:56:12 +03:00
|
|
|
"crates/swc_xml",
|
2024-05-31 03:56:21 +03:00
|
|
|
"crates/swc_x_optimizer",
|
2024-06-05 09:38:28 +03:00
|
|
|
"crates/swc_transform_common",
|
2024-06-21 06:45:53 +03:00
|
|
|
"crates/swc_typescript",
|
2024-07-05 15:07:24 +03:00
|
|
|
"crates/swc_fast_ts_strip",
|
2024-07-18 02:00:45 +03:00
|
|
|
"tools/generate-code",
|
2022-03-13 11:17:55 +03:00
|
|
|
]
|
2023-07-13 05:07:25 +03:00
|
|
|
resolver = "2"
|
2024-04-29 03:54:45 +03:00
|
|
|
|
2024-06-05 09:38:28 +03:00
|
|
|
[workspace.package]
|
2024-07-18 02:00:45 +03:00
|
|
|
license = "Apache-2.0"
|
2024-06-05 09:38:28 +03:00
|
|
|
repository = "https://github.com/swc-project/swc.git"
|
|
|
|
|
2024-07-18 02:00:45 +03:00
|
|
|
|
2024-04-29 03:54:45 +03:00
|
|
|
[workspace.dependencies]
|
|
|
|
# bytecheck version should be in sync with rkyv version. Do not bump individually.
|
|
|
|
bytecheck = "0.6.10"
|
|
|
|
rkyv = "=0.7.44"
|
|
|
|
|
|
|
|
|
2024-07-10 09:20:27 +03:00
|
|
|
Inflector = "0.11.4"
|
|
|
|
ahash = "0.8.8"
|
2024-07-14 07:27:41 +03:00
|
|
|
allocator-api2 = "0.2.18"
|
2024-07-10 09:20:27 +03:00
|
|
|
ansi_term = "0.12.1"
|
|
|
|
anyhow = "1.0.81"
|
|
|
|
arbitrary = "1"
|
|
|
|
arrayvec = "0.7.4"
|
|
|
|
assert_cmd = "2.0.12"
|
|
|
|
assert_fs = "1.0.13"
|
|
|
|
atty = "0.2.14"
|
|
|
|
auto_impl = "1.2.0"
|
|
|
|
backtrace = "0.3.61"
|
|
|
|
base64 = "0.21.0"
|
|
|
|
bitflags = "2.5.0"
|
|
|
|
browserslist-rs = "0.16.0"
|
2024-07-10 12:47:14 +03:00
|
|
|
bumpalo = "3.16.0"
|
2024-07-15 13:54:00 +03:00
|
|
|
cargo_metadata = "0.18.1"
|
2024-07-10 09:20:27 +03:00
|
|
|
cfg-if = "1.0.0"
|
|
|
|
chrono = "0.4.38"
|
|
|
|
codspeed-criterion-compat = "2.6.0"
|
|
|
|
console_error_panic_hook = "0.1.7"
|
|
|
|
copyless = "0.1.5"
|
|
|
|
crc = "2.1.0"
|
|
|
|
criterion = "0.5.1"
|
|
|
|
dashmap = "5.5.3"
|
|
|
|
dialoguer = "0.10.2"
|
|
|
|
difference = "2"
|
|
|
|
either = "1.10.0"
|
|
|
|
enumset = "1.1.2"
|
|
|
|
flate2 = "1.0"
|
|
|
|
futures = "0.3"
|
|
|
|
glob = "0.3.0"
|
|
|
|
hex = "0.4.3"
|
|
|
|
hstr = "0.2.8"
|
|
|
|
indexmap = "2.0.0"
|
|
|
|
is-macro = "0.3.5"
|
|
|
|
js-sys = "0.3.59"
|
|
|
|
jsonc-parser = "0.21.0"
|
|
|
|
lazy_static = "1.4.0"
|
|
|
|
lexical = "6.1.0"
|
|
|
|
lru = "0.10.0"
|
|
|
|
memchr = "2.6.1"
|
|
|
|
miette = "7.2.0"
|
|
|
|
napi = { version = "2.0.0", default-features = false }
|
|
|
|
napi-derive = { version = "2.0.0", default-features = false }
|
|
|
|
new_debug_unreachable = "1.0.6"
|
|
|
|
nom = "7.1.3"
|
|
|
|
ntest = "0.7.2"
|
|
|
|
num-bigint = "0.4.3"
|
|
|
|
num-traits = "0.2.15"
|
|
|
|
num_cpus = "1.13.1"
|
|
|
|
once_cell = "1.19.0"
|
|
|
|
parking_lot = "0.12.1"
|
|
|
|
path-absolutize = "3.0.11"
|
|
|
|
pathdiff = "0.2.1"
|
|
|
|
petgraph = "0.6.0"
|
|
|
|
phf = "0.11.2"
|
|
|
|
pretty_assertions = "1.3"
|
|
|
|
proc-macro2 = "1.0.24"
|
2024-07-14 07:27:41 +03:00
|
|
|
ptr_meta = "0.1.4"
|
2024-07-10 09:20:27 +03:00
|
|
|
quote = "1.0.7"
|
2024-07-15 13:54:00 +03:00
|
|
|
radix_fmt = "1.0.0"
|
2024-07-10 09:20:27 +03:00
|
|
|
rayon = "1.7.0"
|
|
|
|
regex = "1.5.4"
|
|
|
|
relative-path = "1.6.1"
|
|
|
|
reqwest = "0.11.14"
|
|
|
|
rustc-hash = "1.1.0"
|
|
|
|
ryu-js = "1.0.0"
|
|
|
|
scoped-tls = "1.0.1"
|
|
|
|
semver = "1.0.20"
|
|
|
|
serde = "1.0.197"
|
|
|
|
serde-wasm-bindgen = "0.4.5"
|
|
|
|
serde_derive = "1.0.197"
|
|
|
|
serde_json = "1.0.115"
|
|
|
|
sha1 = "0.10.6"
|
|
|
|
sha2 = "0.10.8"
|
|
|
|
siphasher = "0.3.9"
|
|
|
|
smallvec = "1.8.0"
|
|
|
|
smartstring = "1"
|
|
|
|
sourcemap = "8.0.1"
|
|
|
|
st-map = "0.2.0"
|
|
|
|
syn = "2"
|
|
|
|
tempfile = "3.6.0"
|
|
|
|
termcolor = "1.0"
|
|
|
|
thiserror = "1.0.30"
|
|
|
|
tokio = { version = "1", default-features = false }
|
|
|
|
toml = "0.8.2"
|
|
|
|
tracing = "0.1.40"
|
|
|
|
tracing-chrome = "0.5.0"
|
|
|
|
tracing-futures = "0.2.5"
|
|
|
|
tracing-subscriber = "0.3.18"
|
2024-07-15 13:54:00 +03:00
|
|
|
triomphe = "0.1.13"
|
2024-07-10 09:20:27 +03:00
|
|
|
typed-arena = "2.0.1"
|
|
|
|
unicode-id = "0.3"
|
|
|
|
unicode-id-start = "1.2.0"
|
|
|
|
unicode-width = "0.1.4"
|
|
|
|
url = "2.4.0"
|
|
|
|
vergen = { version = "8.0.0", default-features = false }
|
|
|
|
virtual-fs = { version = "=0.11.1", default-features = false }
|
|
|
|
walkdir = "2.4.0"
|
|
|
|
wasm-bindgen = "0.2.91"
|
|
|
|
wasm-bindgen-futures = "0.4.41"
|
|
|
|
wasmer = { version = "4.2.5", default-features = false }
|
|
|
|
wasmer-wasix = { version = "0.18.0", default-features = false }
|
2024-04-29 03:54:45 +03:00
|
|
|
|
2020-03-01 14:05:03 +03:00
|
|
|
[profile.release]
|
2024-07-19 07:59:20 +03:00
|
|
|
lto = true
|
2022-02-10 11:35:15 +03:00
|
|
|
|
|
|
|
# We use CARGO_PROFILE_RELEASE_LTO for production builds
|
|
|
|
# lto = "fat"
|
|
|
|
|
2020-05-23 09:36:04 +03:00
|
|
|
# debug = true
|
2020-08-17 09:04:08 +03:00
|
|
|
# opt-level = 'z'
|
2020-03-01 14:05:03 +03:00
|
|
|
|
2018-01-12 10:53:06 +03:00
|
|
|
[profile.bench]
|
2020-09-18 08:29:50 +03:00
|
|
|
debug = true
|
2024-07-19 07:59:20 +03:00
|
|
|
lto = true
|
2021-08-07 11:27:52 +03:00
|
|
|
|
2023-10-11 15:40:49 +03:00
|
|
|
# Optimize for iteration
|
|
|
|
[profile.dev.build-override]
|
2021-08-07 11:27:52 +03:00
|
|
|
opt-level = 3
|
|
|
|
|
2023-10-11 15:40:49 +03:00
|
|
|
[profile.dev.package."*"]
|
2024-04-29 03:54:45 +03:00
|
|
|
opt-level = 3
|