mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-21 20:50:51 +00:00
* Fix importing the same identifier from two modules This needed a fix in two locations: * First the generated descriptor function needed its hash to include the module that the import came from in order to generate unique descriptor functions. * Second the generation of the JS shim needed to handle duplicate identifiers in a more uniform fashion, ensuring that imported names didn't clash. * Fix importing the same name in two modules Previously two descriptor functions with duplicate symbols were emitted, and now only one function is emitted by using a global table to keep track of state across macro invocations.
25 lines
703 B
TOML
25 lines
703 B
TOML
[package]
|
|
name = "wasm-bindgen-backend"
|
|
version = "0.2.15"
|
|
authors = ["The wasm-bindgen Developers"]
|
|
license = "MIT/Apache-2.0"
|
|
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend"
|
|
homepage = "https://rustwasm.github.io/wasm-bindgen/"
|
|
documentation = "https://docs.rs/wasm-bindgen-backend"
|
|
description = """
|
|
Backend code generation of the wasm-bindgen tool
|
|
"""
|
|
|
|
[features]
|
|
spans = ["proc-macro2/nightly"]
|
|
extra-traits = ["syn/extra-traits"]
|
|
|
|
[dependencies]
|
|
lazy_static = "1.0.0"
|
|
log = "0.4"
|
|
proc-macro2 = "0.4.8"
|
|
quote = '0.6'
|
|
serde_json = "1.0"
|
|
syn = { version = '0.14', features = ['full', 'visit-mut'] }
|
|
wasm-bindgen-shared = { path = "../shared", version = "=0.2.15" }
|