mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
59 lines
1.9 KiB
TOML
59 lines
1.9 KiB
TOML
[package]
|
|
authors = ["강동윤 <[email protected]>", "OJ Kwon <[email protected]>"]
|
|
description = "Macros to build customized bindings interface"
|
|
edition = { workspace = true }
|
|
license = { workspace = true }
|
|
name = "binding_macros"
|
|
repository = { workspace = true }
|
|
version = "73.0.0"
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[features]
|
|
binding_native = []
|
|
binding_wasm = [
|
|
# SWC features
|
|
"swc",
|
|
"swc_common",
|
|
"swc_ecma_transforms",
|
|
"swc_ecma_ast",
|
|
"swc_ecma_visit",
|
|
|
|
# Optional packages
|
|
"once_cell",
|
|
"wasm-bindgen",
|
|
"wasm-bindgen-futures",
|
|
"js-sys",
|
|
"serde",
|
|
"serde-wasm-bindgen",
|
|
"anyhow",
|
|
"console_error_panic_hook",
|
|
]
|
|
|
|
[dependencies]
|
|
# Common deps for the SWC imports
|
|
swc = { optional = true, version = "73.0.0", path = "../swc", default-features = false }
|
|
swc_common = { optional = true, version = "24.0.0", path = "../swc_common", default-features = false }
|
|
swc_ecma_ast = { optional = true, version = "27.0.0", path = "../swc_ecma_ast", default-features = false }
|
|
swc_ecma_transforms = { optional = true, version = "60.0.0", path = "../swc_ecma_transforms", default-features = false }
|
|
swc_ecma_visit = { optional = true, version = "27.0.0", path = "../swc_ecma_visit", default-features = false }
|
|
|
|
# Optional deps for the wasm binding macro
|
|
anyhow = { workspace = true, optional = true }
|
|
console_error_panic_hook = { workspace = true, optional = true }
|
|
js-sys = { workspace = true, optional = true }
|
|
once_cell = { workspace = true, optional = true }
|
|
serde = { workspace = true, features = ["derive"], optional = true }
|
|
serde-wasm-bindgen = { workspace = true, optional = true }
|
|
|
|
|
|
[dependencies.wasm-bindgen]
|
|
features = ["enable-interning"]
|
|
optional = true
|
|
workspace = true
|
|
|
|
[dependencies.wasm-bindgen-futures]
|
|
optional = true
|
|
workspace = true
|