2021-08-25 18:07:09 +03:00
|
|
|
[package]
|
2022-08-11 12:52:44 +03:00
|
|
|
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
|
|
|
|
description = "Runner for swc plugins. This crate is INTERNAL crate and used by swc itself."
|
2021-08-25 18:07:09 +03:00
|
|
|
documentation = "https://rustdoc.swc.rs/swc_plugin_runner/"
|
2022-08-11 12:52:44 +03:00
|
|
|
edition = "2021"
|
|
|
|
license = "Apache-2.0"
|
|
|
|
name = "swc_plugin_runner"
|
|
|
|
repository = "https://github.com/swc-project/swc.git"
|
2023-05-17 07:53:45 +03:00
|
|
|
version = "0.95.5"
|
2021-08-25 18:07:09 +03:00
|
|
|
|
2022-04-04 14:12:03 +03:00
|
|
|
[lib]
|
|
|
|
bench = false
|
|
|
|
|
2022-03-17 08:07:03 +03:00
|
|
|
[features]
|
2023-04-10 06:40:25 +03:00
|
|
|
default = ["filesystem_cache", "plugin_transform_host_native"]
|
|
|
|
plugin_transform_host_js = [
|
|
|
|
"wasmer/js-default",
|
|
|
|
"wasmer-wasix/js-default",
|
|
|
|
"wasmer-compiler-cranelift/wasm",
|
|
|
|
]
|
|
|
|
plugin_transform_host_native = [
|
|
|
|
"wasmer/default",
|
2023-04-10 07:54:08 +03:00
|
|
|
# wasmer-wasix/default except networking, to avoid unexpected openssl-sys build failure on certain platforms.
|
|
|
|
# [TODO]: revert to /default once issue is resolved"wasmer-wasix/sys",
|
|
|
|
"wasmer-wasix/sys",
|
|
|
|
"wasmer-wasix/logging",
|
|
|
|
"wasmer-wasix/host-fs",
|
|
|
|
"wasmer-wasix/sys-poll",
|
|
|
|
"wasmer-wasix/sys-thread",
|
|
|
|
"wasmer-wasix/host-threads",
|
2023-04-10 06:40:25 +03:00
|
|
|
"wasmer-compiler-cranelift/default",
|
|
|
|
]
|
2022-03-23 10:12:59 +03:00
|
|
|
# Supports a cache allow to store compiled bytecode into filesystem location.
|
2023-04-10 06:40:25 +03:00
|
|
|
# This feature implies in-memory cache support, but not via `memory_cache` feature.
|
2022-03-17 08:07:03 +03:00
|
|
|
filesystem_cache = ["wasmer-cache"]
|
2022-03-23 10:12:59 +03:00
|
|
|
# Supports a cache allow to store wasm module in-memory. This avoids recompilation
|
|
|
|
# to the same module in a single procress lifecycle.
|
2022-08-11 12:52:44 +03:00
|
|
|
memory_cache = []
|
|
|
|
plugin_transform_schema_v1 = ["swc_common/plugin_transform_schema_v1"]
|
|
|
|
plugin_transform_schema_vtest = ["swc_common/plugin_transform_schema_vtest"]
|
2022-03-17 08:07:03 +03:00
|
|
|
|
2022-12-02 13:14:46 +03:00
|
|
|
# Enable ECMASCript support
|
|
|
|
ecma = ["swc_ecma_ast/rkyv-impl"]
|
|
|
|
# Enable CSS support
|
|
|
|
css = ["swc_css_ast/rkyv-impl"]
|
|
|
|
|
2023-04-13 08:49:58 +03:00
|
|
|
__rkyv = []
|
2022-12-02 13:14:46 +03:00
|
|
|
rkyv-impl = ["__rkyv", "swc_common/plugin-rt", "swc_plugin_proxy/plugin-rt"]
|
2022-09-09 11:05:51 +03:00
|
|
|
|
2021-08-25 18:07:09 +03:00
|
|
|
[dependencies]
|
2023-04-10 06:40:25 +03:00
|
|
|
anyhow = "1.0.42"
|
|
|
|
enumset = "1.0.12"
|
|
|
|
once_cell = "1.10.0"
|
|
|
|
parking_lot = "0.12.0"
|
|
|
|
serde = { version = "1.0.126", features = ["derive"] }
|
|
|
|
serde_json = "1.0.64"
|
|
|
|
tracing = "0.1.32"
|
2023-05-05 10:26:38 +03:00
|
|
|
wasmer = { version = "3.3.0", default-features = false }
|
|
|
|
wasmer-wasix = { version = "0.4.0", default-features = false }
|
2023-03-24 07:46:42 +03:00
|
|
|
|
2023-05-16 08:18:57 +03:00
|
|
|
swc_common = { version = "0.31.10", path = "../swc_common", features = [
|
2022-08-11 12:52:44 +03:00
|
|
|
"concurrent",
|
2022-04-07 08:39:57 +03:00
|
|
|
] }
|
2023-05-16 08:18:57 +03:00
|
|
|
swc_css_ast = { version = "0.137.10", path = "../swc_css_ast", optional = true }
|
|
|
|
swc_ecma_ast = { version = "0.104.3", path = "../swc_ecma_ast", optional = true }
|
|
|
|
swc_plugin_proxy = { version = "0.33.3", path = "../swc_plugin_proxy" }
|
2023-03-24 07:46:42 +03:00
|
|
|
|
2022-03-16 01:45:40 +03:00
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
2023-05-05 10:26:38 +03:00
|
|
|
wasmer-cache = { version = "3.3.0", optional = true }
|
|
|
|
wasmer-compiler-cranelift = { version = "3.3.0", default-features = false }
|
2021-08-25 18:07:09 +03:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-04-10 06:40:25 +03:00
|
|
|
criterion = "0.3"
|
2023-03-24 07:46:42 +03:00
|
|
|
|
2023-05-16 08:18:57 +03:00
|
|
|
swc_atoms = { version = "0.5.6", path = '../swc_atoms' }
|
|
|
|
swc_css_ast = { version = "0.137.10", path = "../swc_css_ast", features = [
|
2022-12-02 15:45:17 +03:00
|
|
|
"rkyv-impl",
|
|
|
|
] }
|
2023-05-16 08:18:57 +03:00
|
|
|
swc_css_parser = { version = "0.146.11", path = "../swc_css_parser" }
|
|
|
|
swc_ecma_ast = { version = "0.104.3", path = "../swc_ecma_ast", features = [
|
2022-12-02 13:14:46 +03:00
|
|
|
"rkyv-impl",
|
|
|
|
] }
|
2023-05-16 08:18:57 +03:00
|
|
|
swc_ecma_loader = { version = "0.43.12", path = "../swc_ecma_loader" }
|
2023-05-17 07:53:45 +03:00
|
|
|
swc_ecma_parser = { version = "0.134.5", path = "../swc_ecma_parser" }
|
2023-05-16 08:18:57 +03:00
|
|
|
swc_ecma_visit = { version = "0.90.3", path = "../swc_ecma_visit" }
|
2022-12-02 15:45:17 +03:00
|
|
|
swc_node_base = { version = "0.5.8", path = "../swc_node_base" }
|
2023-05-16 08:18:57 +03:00
|
|
|
testing = { version = "0.33.11", path = "../testing" }
|
2022-04-22 08:52:55 +03:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
harness = false
|
2022-12-02 13:14:46 +03:00
|
|
|
name = "ecma_invoke"
|