2022-08-10 06:10:19 +03:00
|
|
|
[package]
|
|
|
|
authors = ["강동윤 <kdy1997.dev@gmail.com>", "OJ Kwon <kwon.ohjoong@gmail.com>"]
|
|
|
|
description = "Macros to build customized bindings interface"
|
|
|
|
edition = "2021"
|
|
|
|
license = "Apache-2.0"
|
|
|
|
name = "binding_macros"
|
|
|
|
repository = "https://github.com/swc-project/swc.git"
|
2023-08-29 08:06:03 +03:00
|
|
|
version = "0.56.2"
|
2022-08-10 06:10:19 +03:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
bench = false
|
|
|
|
|
|
|
|
[features]
|
|
|
|
binding_native = []
|
|
|
|
binding_wasm = [
|
|
|
|
# SWC features
|
|
|
|
"swc",
|
|
|
|
"swc_common",
|
|
|
|
"swc_ecma_transforms",
|
|
|
|
"swc_ecma_ast",
|
2022-11-18 04:21:23 +03:00
|
|
|
"swc_ecma_visit",
|
2022-08-10 06:10:19 +03:00
|
|
|
|
|
|
|
# Optional packages
|
|
|
|
"once_cell",
|
|
|
|
"wasm-bindgen",
|
|
|
|
"wasm-bindgen-futures",
|
|
|
|
"js-sys",
|
2022-11-18 04:21:23 +03:00
|
|
|
"serde",
|
|
|
|
"serde-wasm-bindgen",
|
2022-08-10 06:10:19 +03:00
|
|
|
"anyhow",
|
|
|
|
"console_error_panic_hook",
|
|
|
|
]
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
# Common deps for the SWC imports
|
2023-08-29 08:06:03 +03:00
|
|
|
swc = { optional = true, version = "0.265.2", path = "../swc" }
|
2023-08-24 15:58:41 +03:00
|
|
|
swc_common = { optional = true, version = "0.32.0", path = "../swc_common" }
|
2023-08-28 03:31:39 +03:00
|
|
|
swc_ecma_ast = { optional = true, version = "0.109.0", path = "../swc_ecma_ast" }
|
2023-08-29 08:06:03 +03:00
|
|
|
swc_ecma_transforms = { optional = true, version = "0.223.1", path = "../swc_ecma_transforms" }
|
2023-08-28 03:31:39 +03:00
|
|
|
swc_ecma_visit = { optional = true, version = "0.95.0", path = "../swc_ecma_visit" }
|
2022-08-10 06:10:19 +03:00
|
|
|
|
|
|
|
# Optional deps for the wasm binding macro
|
2023-06-24 04:28:50 +03:00
|
|
|
anyhow = { optional = true, version = "1.0.71" }
|
2022-08-10 06:10:19 +03:00
|
|
|
console_error_panic_hook = { optional = true, version = "0.1.7" }
|
2023-06-24 04:28:50 +03:00
|
|
|
js-sys = { optional = true, version = "0.3.59" }
|
|
|
|
once_cell = { optional = true, version = "1.18.0" }
|
|
|
|
serde = { optional = true, version = "1", features = ["derive"] }
|
|
|
|
serde-wasm-bindgen = { optional = true, version = "0.4.5" }
|
|
|
|
# https://github.com/wasmerio/wasmer/blob/77898a7767eb7057834fdc1a80b239e6b68cf44e/lib/wasix/Cargo.toml#L92
|
|
|
|
wasm-bindgen = { optional = true, version = "=0.2.84", features = [
|
2022-08-10 06:10:19 +03:00
|
|
|
"enable-interning",
|
|
|
|
] }
|
2023-06-24 04:28:50 +03:00
|
|
|
wasm-bindgen-futures = { optional = true, version = "=0.4.34" }
|