mirror of
https://github.com/LukeHagar/wasm-overhead-research.git
synced 2025-12-06 04:22:06 +00:00
- 5 different JS-to-WASM implementations analyzed - QuickJS (283KB) and Javy Static (519KB) are Wasmer-compatible - Comprehensive size analysis and runtime compatibility testing - Complete documentation and build automation - Wasmer v6.1.0-rc.2 dynamic linking analysis included
30 lines
594 B
TOML
30 lines
594 B
TOML
[package]
|
|
name = "quickjs-transform"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
wasm-bindgen = "0.2"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
console_error_panic_hook = "0.1"
|
|
js-sys = "0.3"
|
|
rquickjs = { version = "0.6", features = ["bindgen"] }
|
|
|
|
[dependencies.web-sys]
|
|
version = "0.3"
|
|
features = ["console"]
|
|
|
|
[profile.release]
|
|
# Tell `rustc` to optimize for small code size.
|
|
opt-level = "s"
|
|
# Enable link time optimization
|
|
lto = true
|
|
# Strip debug symbols
|
|
strip = true
|
|
# Panic strategy for smaller binary size
|
|
panic = "abort"
|