swc/bindings/binding_core_wasm/Cargo.toml

50 lines
1.3 KiB
TOML
Raw Normal View History

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"
version = "1.4.3"
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"]
[features]
default = ["swc_v1"]
2023-02-21 10:09:58 +03:00
swc_v1 = []
swc_v2 = []
# This feature exists to allow cargo operations
# [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
plugin = []
2020-05-07 12:17:57 +03:00
[dependencies]
2022-11-02 07:53:22 +03:00
anyhow = "1.0.66"
getrandom = { version = "0.2.10", features = ["js"] }
2023-02-21 10:09:58 +03:00
serde = { version = "1", features = ["derive"] }
2022-11-15 08:48:57 +03:00
serde-wasm-bindgen = "0.4.5"
swc_core = { version = "0.90.15", features = [
"ecma_ast_serde",
"ecma_codegen",
"binding_macro_wasm",
"ecma_transforms",
"ecma_visit",
2023-02-21 10:09:58 +03:00
] }
tracing = { version = "0.1.37", features = ["max_level_off"] }
wasm-bindgen = { version = "0.2.82", features = ["enable-interning"] }
2022-05-31 06:07:51 +03:00
[package.metadata.wasm-pack.profile.release]
wasm-opt = false