2021-08-25 18:07:09 +03:00
|
|
|
[package]
|
|
|
|
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
|
2022-01-03 22:03:01 +03:00
|
|
|
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/"
|
2021-12-30 12:59:18 +03:00
|
|
|
edition = "2021"
|
2021-12-01 08:20:52 +03:00
|
|
|
license = "Apache-2.0"
|
2021-08-25 18:07:09 +03:00
|
|
|
name = "swc_plugin_runner"
|
|
|
|
repository = "https://github.com/swc-project/swc.git"
|
2022-04-11 23:05:28 +03:00
|
|
|
version = "0.51.0"
|
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]
|
|
|
|
default = ["filesystem_cache"]
|
2022-03-23 10:12:59 +03:00
|
|
|
# Supports a cache allow to store compiled bytecode into filesystem location.
|
|
|
|
# This feature implies in-memory cache enabled always.
|
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.
|
|
|
|
memory_cache = []
|
2022-03-17 08:07:03 +03:00
|
|
|
|
2021-08-25 18:07:09 +03:00
|
|
|
[dependencies]
|
|
|
|
anyhow = "1.0.42"
|
2022-03-11 17:00:55 +03:00
|
|
|
once_cell = "1.10.0"
|
2022-02-17 08:16:14 +03:00
|
|
|
parking_lot = "0.12.0"
|
2022-04-07 08:39:57 +03:00
|
|
|
serde = { version = "1.0.126", features = ["derive"] }
|
2021-08-25 18:07:09 +03:00
|
|
|
serde_json = "1.0.64"
|
2022-04-07 10:21:37 +03:00
|
|
|
swc_common = { version = "0.17.20", path = "../swc_common", features = [
|
2022-03-16 12:58:24 +03:00
|
|
|
"plugin-rt",
|
|
|
|
"concurrent",
|
2022-04-07 08:39:57 +03:00
|
|
|
] }
|
2022-04-11 23:05:28 +03:00
|
|
|
swc_ecma_ast = { version = "0.76.0", path = "../swc_ecma_ast", features = [
|
2022-03-16 12:58:24 +03:00
|
|
|
"rkyv-impl",
|
2022-04-07 08:39:57 +03:00
|
|
|
] }
|
2022-04-09 10:47:43 +03:00
|
|
|
swc_plugin_proxy = { version = "0.1.1", path = "../swc_plugin_proxy", features = [
|
2022-04-04 14:12:03 +03:00
|
|
|
"plugin-rt",
|
2022-04-07 08:39:57 +03:00
|
|
|
] }
|
2022-03-10 06:15:49 +03:00
|
|
|
tracing = "0.1.32"
|
2022-04-07 08:39:57 +03:00
|
|
|
wasmer = { version = "2.2.1", default-features = false }
|
|
|
|
wasmer-wasi = { version = "2.2.1", default-features = false }
|
2022-03-16 01:45:40 +03:00
|
|
|
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
2022-04-07 08:39:57 +03:00
|
|
|
wasmer-cache = { version = "2.2.1", optional = true }
|
2021-08-25 18:07:09 +03:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-04-07 08:39:57 +03:00
|
|
|
swc_atoms = { version = "0.2.7", path = '../swc_atoms' }
|
|
|
|
swc_ecma_loader = { version = "0.29.0", path = "../swc_ecma_loader" }
|
2022-04-11 23:05:28 +03:00
|
|
|
swc_ecma_parser = { version = "0.101.0", path = "../swc_ecma_parser" }
|
|
|
|
swc_ecma_visit = { version = "0.62.0", path = "../swc_ecma_visit" }
|
2022-04-07 08:39:57 +03:00
|
|
|
testing = { version = "0.19.0", path = "../testing" }
|
2022-03-16 01:45:40 +03:00
|
|
|
# This allows we can run non-wasm32 target build command while some pkg select features for wasmer/js omits its transitive deps
|
2022-03-22 08:14:20 +03:00
|
|
|
wasmer = "2.2.1"
|
|
|
|
wasmer-wasi = "2.2.1"
|