2020-05-07 12:17:57 +03:00
|
|
|
[package]
|
2023-02-21 10:09:58 +03:00
|
|
|
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
|
2020-05-07 12:17:57 +03:00
|
|
|
description = "wasm module for swc"
|
2023-02-21 10:09:58 +03:00
|
|
|
edition = "2021"
|
|
|
|
license = "Apache-2.0"
|
|
|
|
name = "binding_core_wasm"
|
|
|
|
publish = false
|
|
|
|
repository = "https://github.com/swc-project/swc.git"
|
2024-10-01 12:49:29 +03:00
|
|
|
version = "1.7.29"
|
2020-05-07 12:17:57 +03:00
|
|
|
|
|
|
|
[lib]
|
2023-02-21 10:09:58 +03:00
|
|
|
bench = false
|
2020-05-07 12:17:57 +03:00
|
|
|
crate-type = ["cdylib"]
|
|
|
|
|
2021-12-12 16:52:58 +03:00
|
|
|
[features]
|
|
|
|
default = ["swc_v1"]
|
2023-02-21 10:09:58 +03:00
|
|
|
swc_v1 = []
|
|
|
|
swc_v2 = []
|
2022-03-16 01:45:40 +03:00
|
|
|
# This feature exists to allow cargo operations
|
2023-04-10 06:40:25 +03:00
|
|
|
# [TODO]: this is disabled due to signature mismatch between host_native and host_js,
|
|
|
|
# which causes build errors like
|
|
|
|
# .call(&mut self.store, ptr.0, ptr.1)
|
|
|
|
# | ^^^^ the trait `NativeWasmTypeInto` is not implemented for `u32`
|
|
|
|
# |
|
|
|
|
# = help: the following other types implement trait `NativeWasmTypeInto`:
|
|
|
|
# f32
|
|
|
|
# f64
|
|
|
|
# i32
|
|
|
|
# i64
|
|
|
|
# u128
|
2023-04-10 07:13:46 +03:00
|
|
|
plugin = []
|
2021-12-12 16:52:58 +03:00
|
|
|
|
2020-05-07 12:17:57 +03:00
|
|
|
[dependencies]
|
2024-07-18 02:00:45 +03:00
|
|
|
anyhow = { workspace = true }
|
|
|
|
getrandom = { workspace = true, features = ["js"] }
|
|
|
|
serde = { workspace = true, features = ["derive"] }
|
|
|
|
serde-wasm-bindgen = { workspace = true }
|
|
|
|
swc_core = { workspace = true, features = [
|
2023-03-27 07:28:42 +03:00
|
|
|
"ecma_ast_serde",
|
2023-09-05 15:24:25 +03:00
|
|
|
"ecma_codegen",
|
2022-08-10 06:10:19 +03:00
|
|
|
"binding_macro_wasm",
|
2022-10-11 14:49:30 +03:00
|
|
|
"ecma_transforms",
|
|
|
|
"ecma_visit",
|
2023-02-21 10:09:58 +03:00
|
|
|
] }
|
2024-07-18 02:00:45 +03:00
|
|
|
tracing = { workspace = true, features = ["max_level_off"] }
|
|
|
|
wasm-bindgen = { workspace = true, features = ["enable-interning"] }
|
2022-05-31 06:07:51 +03:00
|
|
|
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
|
|
wasm-opt = false
|