swc/crates/swc_plugin_proxy/Cargo.toml
2023-03-31 06:17:53 +00:00

50 lines
1.6 KiB
TOML

[package]
authors = ["강동윤 <kdy1997.dev@gmail.com>", "OJ Kwon <kwon.ohjoong@gmail.com>"]
description = "Proxy structs to the hosts original structs for the plugin"
edition = "2021"
license = "Apache-2.0"
name = "swc_plugin_proxy"
repository = "https://github.com/swc-project/swc.git"
version = "0.31.4"
[lib]
bench = false
[features]
__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 = []
# swc/core, which runs plugin
plugin-bytecheck-rt = [
"__plugin_rt",
"swc_common/plugin-bytecheck-base",
"rkyv-bytecheck-impl",
]
plugin-rt = ["__plugin_rt", "swc_common/plugin-base", "rkyv-impl"]
# actual wasm plugin binary
plugin-bytecheck-mode = [
"__plugin_mode",
"swc_common/plugin-bytecheck-base",
"rkyv-bytecheck-impl",
]
plugin-mode = ["__plugin_mode", "swc_common/plugin-base", "rkyv-impl"]
[dependencies]
rkyv = { package = "rkyv", version = "=0.7.40", optional = true }
# This is to avoid cargo version selection conflict between rkyv=0.7.40 and other versions, as it is strictly pinned
# cannot be merged.
rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true }
tracing = "0.1.32"
better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" }
swc_common = { version = "0.30.4", path = "../swc_common" }
swc_ecma_ast = { version = "0.102.4", path = "../swc_ecma_ast" }
swc_trace_macro = { version = "0.1.2", path = "../swc_trace_macro" }