mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
59 lines
1.6 KiB
TOML
59 lines
1.6 KiB
TOML
[package]
|
|
authors = ["강동윤 <[email protected]>"]
|
|
description = "wasm module for swc"
|
|
edition = { workspace = true }
|
|
license = { workspace = true }
|
|
name = "binding_core_wasm"
|
|
publish = false
|
|
repository = { workspace = true }
|
|
version = "1.15.47"
|
|
|
|
[lib]
|
|
bench = false
|
|
crate-type = ["cdylib"]
|
|
|
|
[features]
|
|
__plugin = []
|
|
default = ["swc_v1"]
|
|
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 = []
|
|
|
|
[dependencies]
|
|
anyhow = { workspace = true }
|
|
getrandom = { workspace = true, features = ["wasm_js"] }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde-wasm-bindgen = { workspace = true }
|
|
swc_core = { path = "../../crates/swc_core", features = [
|
|
"ecma_ast_serde",
|
|
"ecma_codegen",
|
|
"binding_macro_wasm",
|
|
"ecma_transforms",
|
|
"ecma_visit",
|
|
"ecma_helpers_inline",
|
|
"ecma_lints",
|
|
"base_module",
|
|
"base_react_compiler",
|
|
] }
|
|
tracing = { workspace = true, features = ["max_level_off"] }
|
|
wasm-bindgen = { workspace = true, features = ["enable-interning"] }
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
wasm-opt = false
|
|
|
|
[package.metadata.cargo-shear]
|
|
# ignored, as they are only used to enable features
|
|
ignored = ["getrandom", "anyhow", "serde-wasm-bindgen"]
|