2022-03-31 11:45:08 +03:00
|
|
|
[package]
|
2022-08-11 05:01:58 +03:00
|
|
|
authors = ["강동윤 <kdy1997.dev@gmail.com>", "OJ Kwon <kwon.ohjoong@gmail.com>"]
|
2022-04-09 10:47:43 +03:00
|
|
|
description = "Proxy structs to the hosts original structs for the plugin"
|
2022-08-11 05:01:58 +03:00
|
|
|
edition = "2021"
|
|
|
|
license = "Apache-2.0"
|
|
|
|
name = "swc_plugin_proxy"
|
|
|
|
repository = "https://github.com/swc-project/swc.git"
|
2022-12-04 08:55:52 +03:00
|
|
|
version = "0.23.3"
|
2022-04-04 14:12:03 +03:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
bench = false
|
2022-03-31 11:45:08 +03:00
|
|
|
|
|
|
|
[features]
|
2022-09-09 11:05:51 +03:00
|
|
|
__rkyv = []
|
|
|
|
# Enably rkyv serialization with stable version of rkyv.
|
|
|
|
rkyv-impl = ["__rkyv", "rkyv"]
|
|
|
|
# Enable rkyv serialization with updated version of rkyv, along with bytecheck.
|
|
|
|
rkyv-bytecheck-impl = ["__rkyv", "rkyv-latest"]
|
|
|
|
|
|
|
|
__plugin_mode = []
|
|
|
|
__plugin_rt = []
|
2022-03-31 11:45:08 +03:00
|
|
|
# swc/core, which runs plugin
|
2022-09-09 11:05:51 +03:00
|
|
|
plugin-bytecheck-rt = [
|
|
|
|
"__plugin_rt",
|
|
|
|
"swc_common/plugin-bytecheck-base",
|
|
|
|
"rkyv-bytecheck-impl",
|
|
|
|
]
|
|
|
|
plugin-rt = ["__plugin_rt", "swc_common/plugin-base", "rkyv-impl"]
|
|
|
|
|
2022-03-31 11:45:08 +03:00
|
|
|
# actual wasm plugin binary
|
2022-09-09 11:05:51 +03:00
|
|
|
plugin-bytecheck-mode = [
|
|
|
|
"__plugin_mode",
|
|
|
|
"swc_common/plugin-bytecheck-base",
|
|
|
|
"rkyv-bytecheck-impl",
|
|
|
|
]
|
|
|
|
plugin-mode = ["__plugin_mode", "swc_common/plugin-base", "rkyv-impl"]
|
2022-03-31 11:45:08 +03:00
|
|
|
|
|
|
|
[dependencies]
|
2022-04-08 11:34:58 +03:00
|
|
|
better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" }
|
2022-09-09 11:05:51 +03:00
|
|
|
rkyv = { package = "rkyv", version = "=0.7.37", optional = true }
|
|
|
|
# This is to avoid cargo version selection conflict between rkyv=0.7.37 and other versions, as it is strictly pinned
|
|
|
|
# cannot be merged.
|
|
|
|
rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true }
|
2022-12-04 08:55:52 +03:00
|
|
|
swc_common = { version = "0.29.19", path = "../swc_common" }
|
|
|
|
swc_ecma_ast = { version = "0.95.3", path = "../swc_ecma_ast" }
|
2022-08-13 08:09:52 +03:00
|
|
|
swc_trace_macro = { version = "0.1.2", path = "../swc_trace_macro" }
|
2022-09-09 11:05:51 +03:00
|
|
|
tracing = "0.1.32"
|