swc/crates/swc_plugin_runner/Cargo.toml

81 lines
2.8 KiB
TOML
Raw Normal View History

[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."
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-03-10 09:28:00 +03:00
version = "0.90.2"
[lib]
bench = false
[features]
default = ["filesystem_cache"]
# Supports a cache allow to store compiled bytecode into filesystem location.
# This feature implies in-memory cache enabled always.
filesystem_cache = ["wasmer-cache"]
# 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"]
# Enable ECMASCript support
ecma = ["swc_ecma_ast/rkyv-impl"]
# Enable CSS support
css = ["swc_css_ast/rkyv-impl"]
__rkyv = []
rkyv-bytecheck-impl = [
"__rkyv",
"swc_common/plugin-bytecheck-rt",
"swc_plugin_proxy/plugin-bytecheck-rt",
]
rkyv-impl = ["__rkyv", "swc_common/plugin-rt", "swc_plugin_proxy/plugin-rt"]
[dependencies]
anyhow = "1.0.42"
enumset = "1.0.12"
2022-03-11 17:00:55 +03:00
once_cell = "1.10.0"
parking_lot = "0.12.0"
serde = { version = "1.0.126", features = ["derive"] }
serde_json = "1.0.64"
2023-03-10 06:54:16 +03:00
swc_common = { version = "0.29.36", path = "../swc_common", features = [
2022-08-11 12:52:44 +03:00
"concurrent",
2022-04-07 08:39:57 +03:00
] }
2023-03-10 06:54:16 +03:00
swc_css_ast = { version = "0.134.9", path = "../swc_css_ast", optional = true }
swc_ecma_ast = { version = "0.99.1", path = "../swc_ecma_ast", optional = true }
swc_plugin_proxy = { version = "0.28.1", path = "../swc_plugin_proxy" }
tracing = "0.1.32"
wasmer = { version = "2.3.0", default-features = false }
wasmer-wasi = { version = "2.3.0", default-features = false }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
wasmer-cache = { version = "2.3.0", optional = true }
wasmer-compiler-cranelift = { version = "2.3.0" }
wasmer-engine-universal = { version = "2.3.0" }
[dev-dependencies]
criterion = "0.3"
2023-03-08 05:51:08 +03:00
swc_atoms = { version = "0.4.39", path = '../swc_atoms' }
2023-03-10 06:54:16 +03:00
swc_css_ast = { version = "0.134.9", path = "../swc_css_ast", features = [
"rkyv-impl",
] }
2023-03-10 06:54:16 +03:00
swc_css_parser = { version = "0.143.9", path = "../swc_css_parser" }
swc_ecma_ast = { version = "0.99.1", path = "../swc_ecma_ast", features = [
"rkyv-impl",
] }
2023-03-10 06:54:16 +03:00
swc_ecma_loader = { version = "0.41.38", path = "../swc_ecma_loader" }
2023-03-10 09:28:00 +03:00
swc_ecma_parser = { version = "0.129.2", path = "../swc_ecma_parser" }
2023-03-10 06:54:16 +03:00
swc_ecma_visit = { version = "0.85.1", path = "../swc_ecma_visit" }
swc_node_base = { version = "0.5.8", path = "../swc_node_base" }
2023-03-10 06:54:16 +03:00
testing = { version = "0.31.38", path = "../testing" }
wasmer = "2.3.0"
wasmer-wasi = "2.3.0"
2022-04-22 08:52:55 +03:00
[[bench]]
harness = false
name = "ecma_invoke"